Audaspace
1.3.0
A high level audio library.
|
Go to the documentation of this file.
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);
float getDistance()
Retrieves the current distance value.
void setElevation(float elevation)
Changes the elevation value.
float getAzimuth()
Retrieves the current azimuth value.
void setAzimuth(float azimuth)
Changes the azimuth value.
This class stores the azimuth and elevation angles of a sound and allows to change them dynamically.
Definition: Source.h:36
float getElevation()
Retrieves the current elevation value.
Source(float azimuth, float elevation, float distance=0.0)
Creates a Source instance with an initial value.
float getVolume()
Retrieves the current volume value based on the distance.
void setDistance(float distance)
Changes the distance value.
#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
The main header file of the library defining the namespace and basic data types.