IDirectSoundBuffer::GetFrequency
HRESULT GetFrequency(LPDWORD lpdwFrequency);
Retrieves the frequency, in samples per second, at which the buffer is playing.
·Returns DS_OK if successful, or one of the following error values otherwise:
lpdwFrequency
Address of the variable that represents the frequency at which the audio buffer is being played.
The frequency value will be in the range of 100 to 100,000.