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

Returns the speed of sound used when calculating the Doppler effect..

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

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Property Value

Type: System.Single
Defaults to 343.5. Value is measured in meters per second.Has no effect on distance attenuation.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web