This class implements a 3D vector.
Definition: CVector3d.h:88
bool open()
This method opens this audio device context.
Definition: CAudioDevice.cpp:98
bool deleteAudioSource(cAudioSource *a_audioSource)
This method deletes an audio source passed as argument.
Definition: CAudioDevice.cpp:369
bool close()
This method closes this audio device context.
Definition: CAudioDevice.cpp:129
cVector3d m_listenerPos
Position of listener in world coordinates.
Definition: CAudioDevice.h:171
Implements an audio Buffer.
This class implements an audio source.
Definition: CAudioSource.h:78
void deleteAllAudioBuffers()
This method deletes all allocated audio buffers.
Definition: CAudioDevice.cpp:326
Implements of an audio source.
cAudioBuffer * newAudioBuffer()
This method creates a new audio buffer that holds audio data.
Definition: CAudioDevice.cpp:273
bool setListenerPos(const cVector3d &a_listenerPos)
This method sets the position of the listener in world coordinates.
Definition: CAudioDevice.cpp:165
bool setListenerRot(const cMatrix3d &a_listenerRot)
This method sets the orientation of the listener in world coordinates.
Definition: CAudioDevice.cpp:194
std::vector< cAudioBuffer * > m_audioBuffers
List of allocated audio buffers.
Definition: CAudioDevice.h:183
This class implements an audio buffer.
Definition: CAudioBuffer.h:78
cMatrix3d getListenerRot()
This method returns the position of the listener in world coordinates.
Definition: CAudioDevice.h:115
This class implements a 3D matrix.
Definition: CMatrix3d.h:97
virtual ~cAudioDevice()
Destructor of cAudioDevice.
Definition: CAudioDevice.cpp:84
void * m_device
Audio device (of type ALCdevice*).
Definition: CAudioDevice.h:165
cAudioDevice()
Constructor of cAudioDevice.
Definition: CAudioDevice.cpp:62
std::vector< cAudioSource * > m_audioSources
List of allocated audio sources.
Definition: CAudioDevice.h:186
cVector3d getListenerVel()
This method sets the linear velocity of the listener in world coordinates.
Definition: CAudioDevice.h:121
cMatrix3d m_listenerRot
Orientation of listener in world coordinates.
Definition: CAudioDevice.h:174
This class implements an audio device context.
Definition: CAudioDevice.h:81
cAudioSource * newAudioSource()
This method creates a new audio source.
Definition: CAudioDevice.cpp:347
void * m_context
Audio context (of type ALCcontext*).
Definition: CAudioDevice.h:168
bool deleteAudioBuffer(cAudioBuffer *a_audioBuffer)
This method deletes an audio buffer passed as argument.
Definition: CAudioDevice.cpp:295
cVector3d m_listenerVel
Linear velocity of listener in world coordinates.
Definition: CAudioDevice.h:177
Definition: CAudioBuffer.cpp:56
cVector3d getListenerPos()
This method returns the position of the listener in world coordinates.
Definition: CAudioDevice.h:106
bool setListenerVel(const cVector3d &a_listenerVel)
This method sets the linear velocity of the listener in world coordinates.
Definition: CAudioDevice.cpp:246
bool m_active
Flag that indicates if the connection to audio device was opened successfully by calling method open(...
Definition: CAudioDevice.h:180
void deleteAllAudioSources()
This method deletes all audio buffers.
Definition: CAudioDevice.cpp:399
bool checkError()
This method checks for any OpenAL errors.
Definition: CAudioDevice.cpp:421