25 #ifndef CPP3DS_SOUNDSOURCE_HPP
26 #define CPP3DS_SOUNDSOURCE_HPP
31 #include <cpp3ds/Audio/AlResource.hpp>
32 #include <cpp3ds/System/Vector3.hpp>
33 #include <cpp3ds/System/Time.hpp>
281 ndspWaveBuf m_ndspWaveBuf;
289 #endif // CPP3DS_SOUNDSOURCE_HPP
float getVolume() const
Get the volume of the sound.
Base class defining a sound's properties.
bool isRelativeToListener() const
Tell whether the sound's position is relative to the listener or is absolute.
float getMinDistance() const
Get the minimum distance of the sound.
void setRelativeToListener(bool relative)
Make the sound's position relative to the listener or absolute.
SoundSource()
Default constructor.
void setVolume(float volume)
Set the volume of the sound.
unsigned int m_source
OpenAL source identifier.
int m_channel
Current DSP channel for this sound source.
Status
Enumeration of the sound source states.
float getAttenuation() const
Get the attenuation factor of the sound.
void setMinDistance(float distance)
Set the minimum distance of the sound.
SoundSource & operator=(const SoundSource &right)
Overload of assignment operator.
virtual ~SoundSource()
Destructor.
Vector3f getPosition() const
Get the 3D position of the sound in the audio scene.
void setPitch(float pitch)
Set the pitch of the sound.
void setAttenuation(float attenuation)
Set the attenuation factor of the sound.
Base class for classes that require an OpenAL context.
float getPitch() const
Get the pitch of the sound.
Status getStatus() const
Get the current status of the sound (stopped, paused, playing)
void setPosition(float x, float y, float z)
Set the 3D position of the sound in the audio scene.