Ejemplo n.º 1
0
        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;
                }
            }
        }
Ejemplo n.º 2
0
 void SoundWebMatrix_FeedbackReceived(SoundWebObject soundWebObject, SoundWebObjectFeedbackEventArgs args)
 {
     this.OutputValues[(uint)args.ParamID + 1] = (uint)args.Value;
     OnOutputChange((uint)args.ParamID + 1, (uint)args.Value);
 }