Engines/FlatRedBallXNA/FlatRedBall/Audio/AudioManager.cs
/// <summary>
/// Returns whether the argument SoundEffect is playing. If true, then the SoundEffect is already
/// playing. If false, the SoundEffect is not playing. This will only check SoundEffects which were 
/// played through the AudioManager.Play method.
/// </summary>
/// <param name="soundEffect">The SoundEffect to test.</param>
/// <returns>Whether the sound effect is playing.</returns>
Returns whether the argument SoundEffect is playing. If true, then the SoundEffect is already
playing. If false, the SoundEffect is not playing. This will only check SoundEffects which were
played through the AudioManager.Play method.
Returns whether the argument SoundEffect is playing . If true then the SoundEffect is already playing . If false the SoundEffect is not playing . This will only check SoundEffects which were played through the AudioManager . Play method .
public static bool IsSoundEffectPlaying(SoundEffect soundEffect)
        {
            for (int i = 0; i < mSoundEffectPlayInfos.Count; i++)
            {
                if (mSoundEffectPlayInfos[i].SoundEffect == soundEffect)
                {
                    return true;
                }
            }
            return false;
        }
public static bool IsSoundEffectPlaying ( SoundEffect soundEffect ) { for ( int i = 0 ; i < mSoundEffectPlayInfos . Count ; i ++ ) { if ( mSoundEffectPlayInfos [ i ] . SoundEffect == soundEffect ) { return true ; } } return false ; }
Returns whether the argument SoundEffect is playing.
Returns whether the argument SoundEffect is playing .
Whether the sound effect is playing.
Whether the sound effect is playing .
soundEffect
SoundEffect
The SoundEffect to test.
The SoundEffect to test .