|
Ult3D
Implementation of "Ultimate 3D Game Engine Design & Architecture" by Allan Sherrod
|
#include <OpenALSystem.h>
Public Member Functions | |
| OpenALSystem () | |
| ~OpenALSystem () | |
| void | SetListenerPosition (const float x, const float y, const float z) |
| void | SetListenerVelocity (const float x, const float y, const float z) |
| void | SetListenerOrientation (const float dx, const float dy, const float dz, const float ux, const float uy, const float uz) |
| void | PlaySound (const OpenALSoundSource &source) |
| void | PauseSound (const OpenALSoundSource &source) |
| void | StopSound (const OpenALSoundSource &source) |
| bool | IsInitialized () const |
| void | Cleanup () |
Manages the OpenAL library.
| Ult::OpenALSystem::OpenALSystem | ( | ) |
OpenALSystem constructor.
| Ult::OpenALSystem::~OpenALSystem | ( | ) |
OpenALSystem destructor.
| void Ult::OpenALSystem::Cleanup | ( | ) |
Quit/shutdown the OpenAL library.
|
inline |
Returns whether the system has been initialized.
| void Ult::OpenALSystem::PauseSound | ( | const OpenALSoundSource & | source | ) |
Pause the input sound.
| void Ult::OpenALSystem::PlaySound | ( | const OpenALSoundSource & | source | ) |
Start playing the input sound
| void Ult::OpenALSystem::SetListenerOrientation | ( | const float | dx, |
| const float | dy, | ||
| const float | dz, | ||
| const float | ux, | ||
| const float | uy, | ||
| const float | uz ) |
Set the lookat/direction and up vector of the listener.
| void Ult::OpenALSystem::SetListenerPosition | ( | const float | x, |
| const float | y, | ||
| const float | z ) |
Sets the position of where the player is listening from.
| void Ult::OpenALSystem::SetListenerVelocity | ( | const float | x, |
| const float | y, | ||
| const float | z ) |
Set the velocity of the player listener.
| void Ult::OpenALSystem::StopSound | ( | const OpenALSoundSource & | source | ) |
Stop the input sound.