NScumm.Core.Audio.PCSpeakerDriver.AllocateChannel C# (CSharp) Method

AllocateChannel() public method

public AllocateChannel ( ) : MidiChannel
return MidiChannel
        public override MidiChannel AllocateChannel()
        {
            for (var i = 0; i < _channels.Length; i++)
            {
                if (_channels[i].Allocate())
                    return _channels[i];
            }
            return null;
        }