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

HasActiveChannelOfType() 공개 메소드

public HasActiveChannelOfType ( SoundType type ) : bool
type SoundType
리턴 bool
        public bool HasActiveChannelOfType(SoundType type)
        {
            lock (_gate)
            {
                for (var i = 0; i != NumChannels; i++)
                    if (_channels[i] != null && _channels[i].Type == type)
                        return true;
                return false;
            }
        }