Platform SDK: DirectX |
This topic pertains only to application development in Visual Basic. See DirectSound C/C++ Samples.
The SoundMix application demonstrates how multiple DirectSound buffers can be played simultaneously, and shows how to change parameters of buffers as they are playing.
Source: (SDK root)\Samples\Multimedia\VBSamples\DSound\Src\SoundMix
Executable: (SDK root)\Samples\Multimedia\VBSamples\DSound\Bin\SoundMix.exe
Load one or more wave files by clicking on the Load buttons. Select the Loop Play check box so short sounds will repeat. Play, pause, and stop the sounds with the buttons, and change parameters by using the sliders.
The application shows how sound buffers operate independently and are mixed in the primary buffer.