41 std::atomic<float> m_azimuth;
46 std::atomic<float> m_elevation;
51 std::atomic<float> m_distance;
64 Source(
float azimuth,
float elevation,
float distance = 0.0);
The main header file of the library defining the namespace and basic data types.
#define AUD_NAMESPACE_END
Closes the audaspace namespace aud.
Definition Audaspace.h:119
#define AUD_NAMESPACE_BEGIN
Opens the audaspace namespace aud.
Definition Audaspace.h:116
#define AUD_API
Used for exporting symbols in the shared library.
Definition Audaspace.h:93
This class stores the azimuth and elevation angles of a sound and allows to change them dynamically.
Definition Source.h:36
float getVolume()
Retrieves the current volume value based on the distance.
void setElevation(float elevation)
Changes the elevation value.
float getDistance()
Retrieves the current distance value.
void setAzimuth(float azimuth)
Changes the azimuth value.
float getElevation()
Retrieves the current elevation value.
Source(float azimuth, float elevation, float distance=0.0)
Creates a Source instance with an initial value.
void setDistance(float distance)
Changes the distance value.
float getAzimuth()
Retrieves the current azimuth value.