Microsoft DirectX 9.0 SDK Update (October 2004)

Buffer3D.MaxDistance Property

Language:

Note: This documentation is preliminary and is subject to change.

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

Definition

Visual Basic .NET Public Property MaxDistance As Single
C# public float MaxDistance { get; set; }
Managed C++ public: __property float get_MaxDistance();
public: __property void set_MaxDistance(float);
JScript .NET 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
ArgumentException Leave Site An invalid parameter was passed to the called method.

See Also


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center