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

StopHandle() public method

public StopHandle ( SoundHandle handle ) : void
handle SoundHandle
return void
        public void StopHandle(SoundHandle handle)
        {
            lock (_gate)
            {
                // Simply ignore stop requests for handles of sounds that already terminated
                var index = handle.Value % NumChannels;
                if (_channels[index] == null || _channels[index].Handle.Value != handle.Value)
                    return;

                _channels[index] = null;
            }
        }