Overview Chapter

## class CDXSoundBuffer

Constructors and Destructors
| CDXSoundBuffer | Default constructor.
| ~CDXSoundBuffer | Default destructor.

Operations
| CreateSoundBuffer | Called internally by the LoadFromFile function.
| Extract | This function creates a sound buffer for a WAV file already loaded in memory.
| GetFreeBuffer | Called internally.
| Load | Loads a WAVE file from Filepointer.
| Load | Loads a WAVE file from Filename.
| LoadFromFile | Loads and creates a sound buffer from a file.
| LoadFromMemory | Loads and creates a sound buffer from Memory.
| LoadFromRes | Loads a WAVE file from [WAV] Resource.
| Play | Plays the loaded WAV file.
| PlayFrequency | Plays the loaded WAV file.
| Playing | Changes the pan of the sound buffer.
| ReadData | Called internally by the LoadFromFile function.
| ReadDataFromMemory | Called internally by the LoadFromMemory function.
| Release |
| SetPan | Changes the pan of the sound buffer.
| SetVolume | Changes the volume of the sound buffer.
| Stop | Stops the current WAV file.

Data Members |
| public
| int m_Current; | The currently selected buffer.
| const char* m_Filename; | The name of the WAVE file.
| LPDIRECTSOUNDBUFFER* m_lpDSB; | The IDirectSoundBuffer object.
| int m_nBuffers; | The number of sound buffers created.
| CDXSound* m_pDS; | Contains a pointer to the CDXSound object.