Microsoft DirectX 8.1 (Visual Basic)

Wave Playback in DirectSound

This section is a guide to playing waves through DirectSound buffers without making use of the services provided by the DirectMusic loader and performance objects.

For most applications written for DirectX 8.0 and later, the best way to play wave sounds is to load them as segments and play them through the performance. Doing so requires less code, allows tighter integration of sound effects and music, and provides greater functionality such as the ability to mix sounds on an audiopath before they enter a 3-D buffer. However, you can still play wave sounds directly to buffers if you so choose.

Information in this section is contained in the following topics: