From 03c596c3ce94cdaec2c8062007b0b040e5d9a3c5 Mon Sep 17 00:00:00 2001 From: Zachary Hall Date: Mon, 17 Jul 2023 16:19:34 -0700 Subject: [PATCH] Lower CPU usage by increasing samples rendered at a time. --- playback.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playback.cpp b/playback.cpp index 8fe3a00..61386aa 100644 --- a/playback.cpp +++ b/playback.cpp @@ -50,7 +50,7 @@ void Playback::ThreadFunc() { AUDIO_F32SYS; #endif desired.freq = 48000; - desired.samples = 128; + desired.samples = 1024; desired.channels = 2; desired.callback = Playback::SDLCallback; desired.userdata = this;