feat: add audio thread in server being controlled

This commit is contained in:
Kingtous
2023-01-29 11:55:37 +08:00
parent 65ab43aa4a
commit 8e2d6945d0
2 changed files with 14 additions and 8 deletions

View File

@@ -297,7 +297,7 @@ impl<T: InvokeUiSession> Remote<T> {
_ => {}
}
match rx_audio_data.try_recv() {
Ok((instant, msg)) => match &msg.union {
Ok((_instant, msg)) => match &msg.union {
Some(message::Union::AudioFrame(frame)) => {
let mut msg = Message::new();
msg.set_audio_frame(frame.clone());
@@ -311,7 +311,6 @@ impl<T: InvokeUiSession> Remote<T> {
log::debug!("send audio misc {:?}", misc.audio_format());
}
_ => {}
None => {}
},
Err(err) => {
if err == TryRecvError::Empty {