|Microsoft DirectX 9.0|
The AmplitudeModulation sample shows how to apply an effect to a DirectSound secondary buffer and modify the parameters of the effect.
Source: (SDK root)\Samples\C++\DirectSound\AmplitudeModulation
Executable: (SDK root)\Samples\C++\DirectSound\Bin
Play the default sound or load another WAV file by clicking Sound File. Change the parameters of the effect by selecting one of the Wave Form options and moving the slider to change the modulation rate.
The application takes the following steps to set an effect on a buffer and change its parameters: