コード例 #1
0
 void Channel_ChangeEvent(SoundWebChannel channel, SoundWebChannelEventArgs args)
 {
     if (args.EventType == SoundWebChannelEventType.MuteChange)
     {
         this.Feedback = channel.Mute;
     }
 }
コード例 #2
0
 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);
         }
     }
 }