Microsoft DirectX 8.0 (Visual Basic)

DirectSoundSecondaryBuffer8.GetFrequency

Retrieves the frequency at which the buffer is playing.

object.GetFrequency() As Long

Parts

object
Resolves to a DirectSoundSecondaryBuffer8 object.

Return Values

Returns the frequency in hertz, or samples per second.

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 is in the range from DSBFREQUENCY_MIN (100) to DSBFREQUENCY_MAX (100,000).

See Also

DirectSoundSecondaryBuffer8.SetFrequency