Beispiel #1
0
        private void SetControllerMuteButtonsForCurrentLayer()
        {
            _client.Send(_mixer.GetMuteGroupsMessage());
            foreach (var ch in _mixerChannels)
            {
                if (ch.ForceUnMute == true)
                {
                    ch.ForceUnMute = false;
                    _client.Send(ch.ForceUnMuteMessage());
                    if (ch.IsMute == true)
                    {
                        ch.IsMute = false;
                        _client.Send(ch.MuteMessage());
                    }
                }
            }
            SetMuteGroupsLeds();
            var channels = _mixer.getCurrentLayer().Select((item, i) => new { Channel = item, controllerChannelNumber = i });

            foreach (var ch in channels)
            {
                _settings.Controller.SetMuteLed(ch.controllerChannelNumber, _mixerChannels[ch.Channel].IsMute);
            }
        }