Platform SDK: DirectX

AdjustSound Sample

[Visual Basic]

This topic pertains only to application development in C and C++. See DirectSound Visual Basic Samples.

[C++]

Description

AdjustSound illustrates how to play a wave file using a static DirectSound buffer, and how to set the focus, frequency, pan, and volume.

Path

Source: (SDK root)\Samples\Multimedia\DSound\Src\AdjustSound

Executable: (SDK root)\Samples\Multimedia\DSound\Bin\AdjustSound.exe

User's Guide

Click Sound File and load a wave file. Choose settings and click Play. You can change settings as the sound is playing.

Programming Notes

The sample shows basic techniques of using a 2-D secondary buffer.