From b85e0a820cdd8b301651c5696e51449b9c0d4182 Mon Sep 17 00:00:00 2001 From: Craig McLure Date: Sun, 24 Mar 2024 04:09:33 +0000 Subject: [PATCH] Add a tiny bit more buffer, just in case :p --- audio/src/recorder.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/audio/src/recorder.rs b/audio/src/recorder.rs index ccf83207..4a55c533 100644 --- a/audio/src/recorder.rs +++ b/audio/src/recorder.rs @@ -71,9 +71,9 @@ impl BufferedRecorder { // // So we'll make this buffer OS relevant. let forced_buffer = if cfg!(target_os = "windows") { - (48 * 2) * 10 + (48 * 2) * 15 } else { - (48 * 2) * 25 + (48 * 2) * 30 }; let user_buffer = (48 * 2) * buffer_millis; let buffer_size = max(forced_buffer, user_buffer);