Language

Buffer3D.MaxDistance Property (Microsoft.DirectX.DirectSound)

Retrieves or sets the maximum distance, from the listener, beyond which sounds in this buffer are no longer attenuated.

Definition

Visual Basic Public Property MaxDistance As Single
C# public float MaxDistance { get; set; }
C++ public:
property float MaxDistance {
        float get();
        void set(float value);
}
JScript public function get MaxDistance() : float
public function set MaxDistance(float);

Property Value

System.Single
Maximum distance in meters to set or retrieve.

This property is read/write. 

Remarks

The default maximum distance, defined as DSoundHelper.DefaultMaxDistance, is effectively infinite.

The default unit of measurement is meters, but this can be changed by using the Listener3D.DistanceFactor property.

Exceptions

ArgumentExceptionLeave Site

An invalid parameter was passed to the called method.

See Also