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

Gets or sets the scale of Doppler calculations applied to sounds.

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

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Property Value

Type: System.Single
DopplerScale defaults to 1.0 and must be greater or equal to 0.0Affects the relative velocity of emitters and listeners.Higher values more dramatically shift the pitch for the given relative velocity of the emitter and listener.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web