SoundEffect.DistanceScale Property (Microsoft.Xna.Framework.Audio)

Gets or sets the scale of distance calculations.

Namespace: Microsoft.Xna.Framework.Audio
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1082)
  • C#
  • VB
  • F#
public static float DistanceScale { get; set; }

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Property Value

Type: System.Single
DistanceScale defaults to 1.0 and must be greater than 0.0.Higher values reduce the rate of falloff between the sound and listener.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web