Thrive
Classes | Public Member Functions | Static Public Member Functions | List of all members
thrive::SoundManager Class Referencefinal

Classes

struct  Implementation
 

Public Member Functions

void init (const std::string &device)
 Sets up cAudio with the specified device. More...
 
void destroySound (SoundEmitter *sound)
 Destroys a sound object that was created before with createSound.
 
SoundEmitter * createSound (const std::string &name, const std::string &fileName, bool stream, bool loop, std::string namespacePrefix)
 Creates a sound object for internal use by sound system. More...
 

Static Public Member Functions

static SoundListener * getListener ()
 Returns the listener object which can be moved to change the position of the sound's listener.
 
static SoundManager * getSingleton ()
 Returns a pointer to the global instance.
 

Member Function Documentation

SoundEmitter * SoundManager::createSound ( const std::string &  name,
const std::string &  fileName,
bool  stream,
bool  loop,
std::string  namespacePrefix 
)

Creates a sound object for internal use by sound system.

Parameters
ambientWhen true creates a 2D sound
fileNamePath to the file when ../sounds/ is added to the front
void SoundManager::init ( const std::string &  device)

Sets up cAudio with the specified device.

Parameters
deviceThe device name or empty string for default

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