Engines/FlatRedBallXNA/FlatRedBall/Audio/AudioManager.cs
/// <summary>
/// Checks if the argument sound effect if playing. If not, plays the sound effect.
/// </summary>
/// <param name="soundEffect">The sound effect to play.</param>
Checks if the argument sound effect if playing. If not, plays the sound effect.
Checks if the argument sound effect if playing . If not plays the sound effect .
public static void PlayIfNotPlaying(SoundEffect soundEffect)
        {
            if(!IsSoundEffectPlaying(soundEffect))
            {
                Play(soundEffect);
            }
        }
public static void PlayIfNotPlaying ( SoundEffect soundEffect ) { if ( ! IsSoundEffectPlaying ( soundEffect ) ) { Play ( soundEffect ) ; } }
Checks if the argument sound effect if playing.
Checks if the argument sound effect if playing .
soundEffect
SoundEffect
The sound effect to play.
The sound effect to play .