From 61ab70dd2bd1d4cede68a258e2a8a484da94c07d Mon Sep 17 00:00:00 2001 From: Louis Dalibard Date: Mon, 21 Oct 2024 13:57:37 +0200 Subject: [PATCH] fix: ring buffer race condition issues --- config/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/config.go b/config/config.go index 631224b..b3ee200 100644 --- a/config/config.go +++ b/config/config.go @@ -37,8 +37,8 @@ var DefaultConfig = ConfigS{ WindowOpacity: 0.8, CaptureDeviceIndex: 0, SampleRate: 48000, - RingBufferSize: 192000, - ReadBufferSize: 192000, + RingBufferSize: 4800, + ReadBufferSize: 4800, Gain: 1, LineOpacity: 50, LineThickness: 2,