From 0dcbf87515f4431151ddbb0704e19aef9da8fcea Mon Sep 17 00:00:00 2001 From: Henrik Enquist Date: Fri, 25 Feb 2022 23:04:51 +0100 Subject: [PATCH] Longer timeout for Alsa I/O, bump to rc3 --- Cargo.toml | 3 +-- src/alsadevice.rs | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 48d6853b..34c19a99 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "camilladsp" -version = "1.0.0-rc2" +version = "1.0.0-rc3" authors = ["Henrik Enquist "] edition = "2021" description = "A flexible tool for processing audio" @@ -43,7 +43,6 @@ dispatch = "0.2.0" wasapi = "0.10.0" crossbeam-channel = "0.5" windows = {version = "0.32.0", features = ["alloc", "Win32_System_Threading", "Win32_Foundation"] } -#winapi = { version = "0.3", features = ["avrt"] } [dependencies] serde = { version = "1.0", features = ["derive"] } diff --git a/src/alsadevice.rs b/src/alsadevice.rs index 84da6a5f..76e9c266 100644 --- a/src/alsadevice.rs +++ b/src/alsadevice.rs @@ -161,7 +161,7 @@ fn play_buffer( ); } - match pcmdevice.wait(Some(2 * millis_per_chunk as u32)) { + match pcmdevice.wait(Some(4 * millis_per_chunk as u32)) { Ok(true) => { trace!("Playback waited, ready"); } @@ -220,7 +220,7 @@ fn capture_buffer( } let millis_per_chunk = 1000 * frames_to_read / samplerate; - match pcmdevice.wait(Some(2 * millis_per_chunk as u32)) { + match pcmdevice.wait(Some(4 * millis_per_chunk as u32)) { Ok(true) => { trace!("Capture waited, ready"); }