Microsoft DirectX 8.0 (Visual Basic)

DirectSound3DBuffer8.GetMinDistance

Retrieves the current minimum distance for this sound buffer, which is the distance at which the sound is at maximum volume.

object.GetMinDistance() As Single

Parts

object
Resolves to a DirectSound3DBuffer8 object.

Return Values

Returns the minimum distance setting.

Error Codes

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

Remarks

By default, the minimum distance value is DS3D_DEFAULTMINDISTANCE, currently defined as 1.0 (corresponding to 1.0 meter at the default distance factor of 1.0 meters per unit).

See Also

DirectSound3DBuffer8.SetMinDistance, DirectSound3DBuffer8.GetMaxDistance, Minimum and Maximum Distances