Microsoft DirectX 8.0 (Visual Basic)

DirectSound3DListener8.GetDopplerFactor

Retrieves the Doppler effect factor.

object.GetDopplerFactor() As Single

Parts

object
Resolves to a DirectSound3DListener8 object.

Return Values

Returns the Doppler factor.

Error Codes

If the method fails, an error is raised and Err.Number may be set to DSERR_INVALIDPARAM.

Remarks

The Doppler factor has a range of DS3D_MINDOPPLERFACTOR (no Doppler effects) to DS3D_MAXDOPPLERFACTOR (10 times the Doppler effects found in the real world). The default value is DS3D_DEFAULTDOPPLERFACTOR (1.0).

See Also

DirectSound3DListener8.SetDopplerFactor, Doppler Factor