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); }
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; }
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) { }