|This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.|
To retrieve and set the volume at which a buffer is played, your application can use the IDirectSoundBuffer::GetVolumeand IDirectSoundBuffer::SetVolumemethods. Setting the volume on the primary sound buffer changes the waveform-audio volume of the sound card.
Similarly, by calling the IDirectSoundBuffer::GetFrequencyand IDirectSoundBuffer::SetFrequencymethods, you can retrieve and set the frequency at which audio samples play. You cannot change the frequency of the primary buffer.
In order to use any of these controls, you must have set the appropriate flags when creating the buffer. See Buffer Control Options.
Last updated on Tuesday, May 18, 2004