NScumm.Sky.Sound.RestoreSfx C# (CSharp) Method

RestoreSfx() public method

public RestoreSfx ( ) : void
return void
        public void RestoreSfx()
        {
            // queue sfx, so they will be started when the player exits the control panel
            Array.Clear(SfxQueue, 0, SfxQueue.Length);
            byte queueSlot = 0;
            if (SaveSounds[0] != 0xFFFF)
            {
                SfxQueue[queueSlot].FxNo = (byte)SaveSounds[0];
                SfxQueue[queueSlot].Vol = (byte)(SaveSounds[0] >> 8);
                SfxQueue[queueSlot].Chan = 0;
                SfxQueue[queueSlot].Count = 1;
                queueSlot++;
            }
            if (SaveSounds[1] != 0xFFFF)
            {
                SfxQueue[queueSlot].FxNo = (byte)SaveSounds[1];
                SfxQueue[queueSlot].Vol = (byte)(SaveSounds[1] >> 8);
                SfxQueue[queueSlot].Chan = 1;
                SfxQueue[queueSlot].Count = 1;
            }
        }