示例#1
0
 public static Task MuteAsync(this AudioVideoMcuSession mcuSession,
                              ParticipantEndpoint endpoint, MuteOptions options)
 {
     return(Task.Factory.FromAsync(mcuSession.BeginMute,
                                   mcuSession.EndMute, endpoint, options,
                                   null));
 }
 public static Task MuteAsync(this AudioVideoMcuSession mcuSession,
     ParticipantEndpoint endpoint, MuteOptions options)
 {
     return Task.Factory.FromAsync(mcuSession.BeginMute,
         mcuSession.EndMute, endpoint, options,
         null);
 }
示例#3
0
文件: Program.cs 项目: lulzzz/daipan
 private static int MuteAndReturnExitCode(MuteOptions opts)
 {
     System.Console.WriteLine("Command mute was selected");
     speaker.Speak("Voice output muted");
     speaker.Speak("You will not hear me anymore");
     speaker.Pause();
     return(1);
 }
 public PortConfiguration(int frequency, MuteOptions mute,
                          ConfigMuteOptions configMute, int attenuation, int slope, InverseOptions inverse)
 {
     Frequency   = frequency;
     Mute        = (int)mute;
     ConfigMute  = (int)configMute;
     Attenuation = attenuation;
     Slope       = slope;
     Inverse     = (int)inverse;
 }
示例#5
0
        public static string GetText(this MuteOptions op)
        {
            switch (op)
            {
            case MuteOptions.On:
                return("Disabled");

            case MuteOptions.Off:
                return("Enabled");

            default:
                throw new Exception("Unsupported Operation");
            }
        }
 public PortBConfiguration(int frequency, MuteOptions mute,
                           ConfigMuteOptions configMute, int attenuation, int slope, InverseOptions inverse)
     : base(frequency, mute, configMute, attenuation, slope, inverse)
 {
 }