DirectX SDK |
This topic pertains only to application development in C and C++. See DirectSound Visual Basic Samples.
AdjustSound illustrates how to play a wave file using a static DirectSound buffer, and how to set the focus, frequency, pan, and volume.
Source: (SDK root)\Samples\Multimedia\DSound\Src\AdjustSound
Executable: (SDK root)\Samples\Multimedia\DSound\Bin\AdjustSound.exe
Click Sound File and load a wave file. Choose settings and click Play. You can change settings as the sound is playing.
The sample shows basic techniques of using a 2-D secondary buffer.