NScumm.Core.Audio.Mixer.StopHandle C# (CSharp) 메소드

StopHandle() 공개 메소드

public StopHandle ( SoundHandle handle ) : void
handle SoundHandle
리턴 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;
            }
        }