void Mixer_FeedbackReceived(SoundWebObject soundWebObject, SoundWebObjectFeedbackEventArgs args) { uint channel = GetChannelFromParamID(args.ParamID); SoundWebChannelParamType channelControlType = GetSoundWebChannelParamType(args.ParamID); if (channel == this.Index) { switch (channelControlType) { case SoundWebChannelParamType.Gain: _gain = args.Value; if (ChangeEvent != null) { ChangeEvent(this, new SoundWebChannelEventArgs(SoundWebChannelEventType.GainChange)); } break; case SoundWebChannelParamType.Mute: if (args.Value == 1) { _mute = true; } else { _mute = false; } if (ChangeEvent != null) { ChangeEvent(this, new SoundWebChannelEventArgs(SoundWebChannelEventType.MuteChange)); } break; } } }
void SoundWebMatrix_FeedbackReceived(SoundWebObject soundWebObject, SoundWebObjectFeedbackEventArgs args) { this.OutputValues[(uint)args.ParamID + 1] = (uint)args.Value; OnOutputChange((uint)args.ParamID + 1, (uint)args.Value); }