Microsoft DirectX 8.1 (Visual Basic)

Playback Controls

To retrieve and set the volume at which a buffer is played, your application can use the DirectSoundSecondaryBuffer8.GetVolume and DirectSoundSecondaryBuffer8.SetVolume methods. Equivalent methods are available on the DirectSoundPrimaryBuffer8 object. Setting the volume on the primary buffer changes the waveform-audio volume of the sound card.

By calling the DirectSoundSecondaryBuffer8.GetFrequency and DirectSoundSecondaryBuffer8.SetFrequency methods, you can retrieve and set the frequency at which audio samples play. You cannot change the frequency of the primary buffer.

To retrieve and set the pan, use the DirectSoundSecondaryBuffer8.GetPan and DirectSoundSecondaryBuffer8.SetPan methods. Equivalent methods are available on the DirectSoundPrimaryBuffer8 object.

In order to use any of these controls, you must set the appropriate flags when creating the buffer. See Buffer Control Options.