Symphonary.MidiPlayer.MuteOtherChannels C# (CSharp) Method

MuteOtherChannels() private method

Mutes all channels except the persistent channel
private MuteOtherChannels ( ) : void
return void
        private void MuteOtherChannels()
        {
            for (int i = 0; i < 16; i++)
            {
                if (i != i_PersistentChannel)
                {
                    // sending all-sounds-off command to channel
                    outputDevice.Send(new ChannelMessage(ChannelCommand.Controller, i, (int)ControllerType.AllSoundOff, 0));
                }
            }
        }