NScumm.Scumm.Sound.StopSound C# (CSharp) Метод

StopSound() публичный Метод

public StopSound ( int sound ) : void
sound int
Результат void
        public void StopSound(int sound)
        {
            if (sound != 0 && sound == _currentCDSound)
            {
                _currentCDSound = 0;
                StopCD();
                StopCDTimer();
            }

            if (vm.Game.Version < 7)
                _mixer.StopID(sound);

            if (vm.MusicEngine != null)
                vm.MusicEngine.StopSound(sound);

            if (soundQueue.Count > 0)
            {
                var sounds = soundQueue.ToList();
                sounds.RemoveAll(obj => obj == sound);
                soundQueue = new Stack<int>(sounds);
            }
        }

Usage Example

Пример #1
0
 protected virtual void StopSound(int sound)
 {
     Sound.StopSound(sound);
 }