Category5.SoundEffectEngine.Update C# (CSharp) Method

Update() public static method

public static Update ( ) : void
return void
        public static void Update()
        {
            for (int i = 0; i < HighPrioritySounds.Count; i++)
            {
                if (HighPrioritySounds[i].Status == Microsoft.Xna.Framework.Audio.SoundState.Stopped)
                {
                    HighPrioritySounds.RemoveAt(i);
                    i--;
                }
            }
            for (int i = 0; i < NormalSounds.Count; i++)
            {
                if (NormalSounds[i].Status == Microsoft.Xna.Framework.Audio.SoundState.Stopped)
                {
                    NormalSounds.RemoveAt(i);
                    i--;
                }
            }
        }