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

HasActiveChannelOfType() public method

public HasActiveChannelOfType ( SoundType type ) : bool
type SoundType
return 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;
            }
        }