Export (0) Print
Expand All

SoundEffect.SpeedOfSound Property

Returns the speed of sound: 343.5 meters per second.

Namespace: Microsoft.Xna.Framework.Audio
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

public static float SpeedOfSound { get; set; }

Property Value

The speed of sound: 343.5 meters per second.

Use this value to simulate different environments. A smaller speed of sound will exaggerate the doppler effect. A higher speed of sound will reduce the doppler effect. Speed of sound has no impact on distance attenuation.

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone

Community Additions

ADD
Show:
© 2015 Microsoft