Ult3D
Implementation of "Ultimate 3D Game Engine Design & Architecture" by Allan Sherrod
|
#include <OpenALSoundBuffer.h>
Public Member Functions | |
OpenALSoundBuffer () | |
~OpenALSoundBuffer () | |
bool | LoadSoundFromFile (const char *fileName) |
void | Cleanup () |
unsigned int | GetSoundBuffer () const |
Represents a loaded sound for play with OpenAL.
Ult::OpenALSoundBuffer::OpenALSoundBuffer | ( | ) |
OpenALSoundBuffer constructor.
Ult::OpenALSoundBuffer::~OpenALSoundBuffer | ( | ) |
OpenALSoundBuffer destructor. Frees the buffer if loaded.
void Ult::OpenALSoundBuffer::Cleanup | ( | ) |
Free the sound buffer if loaded.
|
inline |
Returns the OpenAL handle to the sound buffer.
bool Ult::OpenALSoundBuffer::LoadSoundFromFile | ( | const char * | fileName | ) |
Initializes the sound buffer from a sound file given by fileName.