41 std::atomic<float> m_azimuth;
46 std::atomic<float> m_elevation;
51 std::atomic<float> m_distance;
54 Source(
const Source&) =
delete;
55 Source& operator=(
const Source&) =
delete;
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
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.