perf(alsa): reduce playback wakeups via cpal buffer tuning

This commit is contained in:
vicrodh committed 2026-01-13 00:17:28 -06:00
1 parent bb44dd96cd
commit 486cc191f9
51 files changed
+12973

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
use std::env;
const CPAL_ASIO_DIR: &str = "CPAL_ASIO_DIR";
fn main() {
println!("cargo:rerun-if-env-changed={}", CPAL_ASIO_DIR);
// If ASIO directory isn't set silently return early
// otherwise set the asio config flag
match env::var(CPAL_ASIO_DIR) {
Err(_) => {}
Ok(_) => println!("cargo:rustc-cfg=asio"),
};
}