The core functionality for the DirectSound samples is in a common set of classes, declared in DXUTsound.h and implemented in DXUTsound.cpp.
These files are found in the following folder:
(SDK root)\samples\C++\Common
The utility classes provide basic functionality for the samples, and you can use them as a starting-point for your own applications. However, they are not intended to be a full-featured wrapper for the DirectSound API.
The following classes are used in the samples:
| Class | Description |
|---|---|
| CSound Sample Class | Represents a static buffer. |
| CSoundManager Sample Class | Contains functionality for creating and initializing DirectSound, accessing the primary buffer, and creating secondary buffers. |
| CStreamingSound Sample Class | Represents a sound in one or more streaming buffers. |
| CWaveFile Sample Class | Used for reading from and writing to WAV files and reading from WAV resources or waveforms stored in memory. |