NScumm.Core.Audio.Mixer.PauseHandle C# (CSharp) Method

PauseHandle() public method

public PauseHandle ( SoundHandle handle, bool paused ) : void
handle SoundHandle
paused bool
return void
        public void PauseHandle(SoundHandle handle, bool paused)
        {
            lock (_gate)
            {
                // Simply ignore (un)pause requests for sounds that already terminated
                var index = handle.Value % NumChannels;
                if (_channels[index] == null || _channels[index].Handle.Value != handle.Value)
                    return;

                _channels[index].Pause(paused);
            }
        }