void Channel_ChangeEvent(SoundWebChannel channel, SoundWebChannelEventArgs args) { if (args.EventType == SoundWebChannelEventType.MuteChange) { this.Feedback = channel.Mute; } }
void Channel_ChangeEvent(SoundWebChannel channel, SoundWebChannelEventArgs args) { if (args.EventType == SoundWebChannelEventType.GainChange) { if (channel.Gain <= this.GainMinValue) { this.AnalogFeedbackValue = this.LevelMinimumValue; } else if (channel.Gain >= this.GainMaxValue) { this.AnalogFeedbackValue = this.LevelMaximumValue; } else { this.SetLevel(channel.Gain, this.GainMinValue, this.GainMaxValue); } } }