Platform SDK: DirectX |
This topic pertains only to application development in C and C++. See DirectSound Visual Basic Samples.
This sample shows how to play a wave file using a streaming DirectSoundBuffer.
Source: (SDK root)\Samples\Multimedia\DSound\Src\PlayStreaming
Executable: (SDK root)\Samples\Multimedia\DSound\Bin\PlayStreaming.exe
Click the Sound File button to load a wave file, and click Play to play the sound. Select Loop in order to play the sound repeatedly.
Compare the PlaySound Sample, which uses static buffers.