Ult3D
Implementation of "Ultimate 3D Game Engine Design & Architecture" by Allan Sherrod
Loading...
Searching...
No Matches
Ult::OpenALSoundBuffer Class Reference

#include <OpenALSoundBuffer.h>

Public Member Functions

 OpenALSoundBuffer ()
 
 ~OpenALSoundBuffer ()
 
bool LoadSoundFromFile (const char *fileName)
 
void Cleanup ()
 
unsigned int GetSoundBuffer () const
 

Detailed Description

Represents a loaded sound for play with OpenAL.

Constructor & Destructor Documentation

◆ OpenALSoundBuffer()

Ult::OpenALSoundBuffer::OpenALSoundBuffer ( )

OpenALSoundBuffer constructor.

◆ ~OpenALSoundBuffer()

Ult::OpenALSoundBuffer::~OpenALSoundBuffer ( )

OpenALSoundBuffer destructor. Frees the buffer if loaded.

Member Function Documentation

◆ Cleanup()

void Ult::OpenALSoundBuffer::Cleanup ( )

Free the sound buffer if loaded.

◆ GetSoundBuffer()

unsigned int Ult::OpenALSoundBuffer::GetSoundBuffer ( ) const
inline

Returns the OpenAL handle to the sound buffer.

◆ LoadSoundFromFile()

bool Ult::OpenALSoundBuffer::LoadSoundFromFile ( const char * fileName)

Initializes the sound buffer from a sound file given by fileName.

Returns
True on success, false on failure.

The documentation for this class was generated from the following files: