HoverRace  2.0
Functions
HoverRace::VideoServices::SoundServer Namespace Reference

Functions

MR_DllDeclare void ApplyContinuousPlay ()
 
MR_DllDeclare void Close ()
 
MR_DllDeclare ContinuousSoundCreateContinuousSound (const char *pData, int pNbCopy)
 
MR_DllDeclare ShortSoundCreateShortSound (const char *pData, int pNbCopy)
 
MR_DllDeclare void DeleteContinuousSound (ContinuousSound *pSound)
 
MR_DllDeclare void DeleteShortSound (ShortSound *pSound)
 
MR_DllDeclare const std::string & GetInitError ()
 Retrieve the error message from the initialization. More...
 
MR_DllDeclare bool Init ()
 
MR_DllDeclare bool IsDisabled ()
 Determine if the sound is currently disabled. More...
 
MR_DllDeclare void Play (ShortSound *pSound, int pDB=0, double pSpeed=1.0, int pPan=0)
 
MR_DllDeclare void Play (ContinuousSound *pSound, int pCopy, int pDB=0, double pSpeed=1.0, int pPan=0)
 

Function Documentation

void HoverRace::VideoServices::SoundServer::ApplyContinuousPlay ( )
void HoverRace::VideoServices::SoundServer::Close ( )
ContinuousSound * HoverRace::VideoServices::SoundServer::CreateContinuousSound ( const char *  pData,
int  pNbCopy 
)
ShortSound * HoverRace::VideoServices::SoundServer::CreateShortSound ( const char *  pData,
int  pNbCopy 
)
void HoverRace::VideoServices::SoundServer::DeleteContinuousSound ( ContinuousSound pSound)
void HoverRace::VideoServices::SoundServer::DeleteShortSound ( ShortSound pSound)
const std::string & HoverRace::VideoServices::SoundServer::GetInitError ( )

Retrieve the error message from the initialization.

Use this function to get details if SoundServer::Init() failed.

Returns
The error message (will be empty if there was no error).
bool HoverRace::VideoServices::SoundServer::Init ( )
bool HoverRace::VideoServices::SoundServer::IsDisabled ( )

Determine if the sound is currently disabled.

Returns
true if disabled, false if not.
See also
GetInitError()
void HoverRace::VideoServices::SoundServer::Play ( ShortSound pSound,
int  pDB = 0,
double  pSpeed = 1.0,
int  pPan = 0 
)
void HoverRace::VideoServices::SoundServer::Play ( ContinuousSound pSound,
int  pCopy,
int  pDB = 0,
double  pSpeed = 1.0,
int  pPan = 0 
)