HoverRace  2.0
Public Member Functions | Static Public Member Functions | Protected Attributes | Private Attributes | Static Private Attributes | List of all members
HoverRace::VideoServices::SoundBuffer Class Reference
+ Inheritance diagram for HoverRace::VideoServices::SoundBuffer:

Public Member Functions

 SoundBuffer ()
 
virtual ~SoundBuffer ()
 
virtual void ApplyCumCommand ()
 
virtual BOOL Init (const char *pData, int pNbCopy)
 Fill the buffer with sound data. More...
 
void SetParams (int pCopy, int pDB, double pSpeed, int pPan)
 

Static Public Member Functions

static void ApplyCumCommandForAll ()
 
static void DeleteAll ()
 

Protected Attributes

ALuint mBuffer
 
int mNbCopy
 
int mNormalFreq
 
ALuint mSoundBuffer [MR_MAX_SOUND_COPY]
 

Private Attributes

SoundBuffermNext
 

Static Private Attributes

static SoundBuffermList = NULL
 

Constructor & Destructor Documentation

HoverRace::VideoServices::SoundBuffer::SoundBuffer ( )
HoverRace::VideoServices::SoundBuffer::~SoundBuffer ( )
virtual

Member Function Documentation

void HoverRace::VideoServices::SoundBuffer::ApplyCumCommand ( )
virtual
void HoverRace::VideoServices::SoundBuffer::ApplyCumCommandForAll ( )
static
void HoverRace::VideoServices::SoundBuffer::DeleteAll ( )
static
BOOL HoverRace::VideoServices::SoundBuffer::Init ( const char *  pData,
int  pNbCopy 
)
virtual

Fill the buffer with sound data.

Parameters
pDataData buffer. First 32 bits are the data length, followed by a WAVEFORMATEX describing the data, followed by the data itself.
pNbCopyThe number of copies to make.
Returns
TRUE if successful.

Reimplemented in HoverRace::VideoServices::ContinuousSound.

void HoverRace::VideoServices::SoundBuffer::SetParams ( int  pCopy,
int  pDB,
double  pSpeed,
int  pPan 
)

Member Data Documentation

ALuint HoverRace::VideoServices::SoundBuffer::mBuffer
protected
SoundBuffer * HoverRace::VideoServices::SoundBuffer::mList = NULL
staticprivate
int HoverRace::VideoServices::SoundBuffer::mNbCopy
protected
SoundBuffer* HoverRace::VideoServices::SoundBuffer::mNext
private
int HoverRace::VideoServices::SoundBuffer::mNormalFreq
protected
ALuint HoverRace::VideoServices::SoundBuffer::mSoundBuffer[MR_MAX_SOUND_COPY]
protected

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