/// <summary> /// 捕捉到音频数据事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void AC_AudioDataCapturered(object sender, AudioCapturedEventArgs e) { if (AE != null) { frameTransmit.sendData(IMLibrary3.Protocol.TransmitType.Audio, AE.Encode(e.Data));//将音频数据编码后发送给对方 } }
private void EncodeAudio() { AudioEncoder audioEncoder = new AudioEncoder(production); audioEncoder.SuccessEvent += OnAudioEncoderSuccess; audioEncoder.FailureEvent += OnAudioEncoderFailure; audioEncoder.Encode(); }