/// <summary> /// Initializes a new instance of the <see cref="WebrtcManager"/> class. /// </summary> /// <param name="inputDeviceId">The id of the input device.</param> /// <param name="outputDeviceId">The id of the output device.</param> public WebrtcManager() { manager = new Webrtc.WebrtcManager(); manager.IpAndPortObtained += (ip, port) => IpAndPortObtained.Invoke(this, new Tuple <string, ushort>(ip, port)); manager.AudioInData += (sender, data) => AudioInData?.Invoke(sender, data); manager.AudioOutData += (sender, data) => AudioOutData?.Invoke(sender, data); manager.Speaking += (sender, data) => Speaking?.Invoke(sender, data); }
public void Speak() { //null-conditional operator Speaking?.Invoke(this, new EventArgs()); }