|
Ult3D
Implementation of "Ultimate 3D Game Engine Design & Architecture" by Allan Sherrod
|
#include <OpenALSoundSource.h>
Public Member Functions | |
| OpenALSoundSource () | |
| ~OpenALSoundSource () | |
| bool | BindSourceBuffer (const OpenALSoundBuffer &buff) |
| void | SetSoundPosition (const float x, const float y, const float z) |
| void | SetSoundVelocity (const float x, const float y, const float z) |
| void | SetLooping (const bool enable) |
| void | Cleanup () |
| unsigned int | GetSource () const |
Represents a emitter of sound with a position in 3d space.
| Ult::OpenALSoundSource::OpenALSoundSource | ( | ) |
OpenALSoundSource constructor.
| Ult::OpenALSoundSource::~OpenALSoundSource | ( | ) |
OpenALSoundSource destructor.
| bool Ult::OpenALSoundSource::BindSourceBuffer | ( | const OpenALSoundBuffer & | buff | ) |
Set the sound that this source should emit.
| void Ult::OpenALSoundSource::Cleanup | ( | ) |
Free the sound source.
|
inline |
Returns to the OpenAL handle to the sound source.
| void Ult::OpenALSoundSource::SetLooping | ( | const bool | enable | ) |
Set whether the sound should loop or not.
| void Ult::OpenALSoundSource::SetSoundPosition | ( | const float | x, |
| const float | y, | ||
| const float | z ) |
Set the position of the emitter in 3d space.
| void Ult::OpenALSoundSource::SetSoundVelocity | ( | const float | x, |
| const float | y, | ||
| const float | z ) |
Set the velocity of the sound.