use ringbuf to limit audio latency

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2023-03-29 16:59:50 +08:00
Unverified
parent bdc11eb035
commit 80b5033fb7
3 changed files with 62 additions and 38 deletions

View File

@@ -72,6 +72,7 @@ cidr-utils = "0.5.9"
[target.'cfg(not(any(target_os = "android", target_os = "linux")))'.dependencies]
cpal = "0.14"
ringbuf = "0.3"
[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies]
machine-uid = "0.2"