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:

DSERR_CONTROLUNAVAIL

DSERR_INVALIDPARAM

DSERR_PRIOLEVELNEEDED

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.