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

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

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

            // Clear the (secondary) sound queue
            //            _lastSound = 0;
            //            _soundQue2Pos = 0;
            //            memset(_soundQue2, 0, sizeof(_soundQue2));
            soundQueue.Clear();

            if (vm.MusicEngine != null)
            {
                vm.MusicEngine.StopAllSounds();
            }

            // Stop all SFX
            if (!(vm.MusicEngine is IMuseDigital))
            {
                _mixer.StopAll();
            }
        }

Usage Example

Пример #1
0
 protected override void StopMusic()
 {
     Sound.StopAllSounds();
 }