mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-05 16:38:17 +00:00
try to fix audio play noise;improve audio performance
This commit is contained in:
1 parent
4a03c60ac1
commit
82d5924401
5 files changed
+45
-19
No files matched your search
+14
@@ -400,6 +400,20 @@ where
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub async fn send_raw(&mut self, data: Vec<u8>) -> ResultType<()> {
|
||||
self.inner.send(bytes::Bytes::from(data)).await?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub async fn next_raw(&mut self) -> ResultType<bytes::BytesMut> {
|
||||
match self.inner.next().await {
|
||||
Some(Ok(res)) => Ok(res),
|
||||
_ => {
|
||||
bail!("reset by the peer");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[tokio::main(flavor = "current_thread")]
|
||||
|
||||
Reference in new issue
Block a user