From d041475ced9f279fb3dfce9752bd368484c8356d Mon Sep 17 00:00:00 2001 From: Alex Janka Date: Thu, 9 Mar 2023 09:16:49 +1100 Subject: [PATCH] change buffer size --- lib/src/connect/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/connect/mod.rs b/lib/src/connect/mod.rs index fc01f2d..d4f1329 100644 --- a/lib/src/connect/mod.rs +++ b/lib/src/connect/mod.rs @@ -63,7 +63,7 @@ impl AudioOutput { sample_rate: f32, wait_for_output: bool, ) -> (Self, AsyncHeapConsumer<[f32; 2]>) { - let rb_len = sample_rate as usize / (60 * 2); + let rb_len = sample_rate as usize / 60; let rb = AsyncHeapRb::<[f32; 2]>::new(rb_len); let (send_rb, rx) = rb.split();