Microsoft DirectX 8.1 (C++) |
To retrieve and set the volume at which a buffer is played, your application can use the IDirectSoundBuffer8::GetVolume and IDirectSoundBuffer8::SetVolume methods. Setting the volume on the
By calling the IDirectSoundBuffer8::GetFrequency and IDirectSoundBuffer8::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, you can call the IDirectSoundBuffer8::GetPan and IDirectSoundBuffer8::SetPan methods.
In order to use any of these controls, you must set the appropriate flags when creating the buffer. See Buffer Control Options.