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 static DirectSoundBuffer.
Source: Mssdk\Samples\Multimedia\DSound\Src\PlaySound
Executable: Mssdk\Samples\Multimedia\DSound\Bin\PlaySound.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 PlayStreaming Sample, which uses streaming buffers.