From 71b32fa0a97b08f2e1df59d5c469581e3951df7b Mon Sep 17 00:00:00 2001 From: Gabe Cook Date: Thu, 30 Jan 2025 01:35:58 -0600 Subject: [PATCH] perf(apu): Decrease default buffer size to prevent audio lag --- config_example.toml | 2 +- internal/config/default.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config_example.toml b/config_example.toml index 9842123c..3f5a6212 100644 --- a/config_example.toml +++ b/config_example.toml @@ -78,7 +78,7 @@ enabled = true # Output volume (between 0 and 1). volume = 1.0 # Audio buffer size. Try increasing this if audio pops or stutters. -buffer_size = '70 KiB' +buffer_size = '40 KiB' # Toggles specific audio channels. [audio.channels] diff --git a/internal/config/default.go b/internal/config/default.go index 57c1afdf..9d098ba7 100644 --- a/internal/config/default.go +++ b/internal/config/default.go @@ -71,7 +71,7 @@ func NewDefault() *Config { Noise: true, PCM: true, }, - BufferSize: 70 * bytefmt.KiB, + BufferSize: 40 * bytefmt.KiB, }, } }