Platform SDK: DirectX |
The DirectSoundBuffer.GetFrequency method retrieves the frequency, in samples per second, at which the buffer is playing.
object.GetFrequency() As Long
The frequency at which the audio buffer is playing.
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 |
The frequency value is in the range from DSBFREQUENCY_MIN (100) to DSBFREQUENCY_MAX (100,000).