/// <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));//将音频数据编码后发送给对方 } }
/// <summary> /// 捕捉到音频数据事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void AC_AudioDataCapturered(object sender, AudioCapturedEventArgs e) { if (AE != null) { //this.AVcommunication1.SendAudio(AE.Encode(e.Data));//将音频数据编码后发送给对方 } }
/// <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));//将音频数据编码后发送给对方 }
/// <summary> /// 捕捉到音频数据事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void AC_AudioDataCapturered(object sender, AudioCapturedEventArgs e) { if (AE != null) { this.AR.play(e.Data); //Console.WriteLine("声音:"+e.Data.Length.ToString()); //this.AVcommunication1.SendAudio(AE.Encode(e.Data));//将音频数据编码后发送给对方 } }