DirectX SDK

DirectSoundBuffer.GetFrequency

The DirectSoundBuffer.GetFrequency method retrieves the frequency, in samples per second, at which the buffer is playing.

object.GetFrequency() As Long

Parameters

object
Object expression that resolves to a DirectSoundBuffer object.

Return Values

The frequency at which the audio buffer is being played.

Error Codes

If the method fails, an error is raised and Err.Number may be set to one of the following error codes:

DSERR_CONTROLUNAVAIL
DSERR_INVALIDPARAM
DSERR_PRIOLEVELNEEDED

Remarks

The frequency value will be in the range of DSBFREQUENCY_MIN to DSBFREQUENCY_MAX. These values are currently defined as 100 and 100,000 respectively.

See Also

DirectSoundBuffer, DirectSoundBuffer.SetFrequency