From 064fa7b067d2495bad1d686452d3e8fa3539eded Mon Sep 17 00:00:00 2001 From: Clownacy Date: Mon, 14 Dec 2020 17:28:12 +0000 Subject: [PATCH] Fix SDL audio delay Fixes #647 300ms is just too big, and produces an audible delay. 100ms sounds much better. --- src/common/SoundSDL.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/SoundSDL.cpp b/src/common/SoundSDL.cpp index 31dade06..7721d299 100644 --- a/src/common/SoundSDL.cpp +++ b/src/common/SoundSDL.cpp @@ -25,8 +25,8 @@ extern int emulating; -// Hold up to 300 ms of data in the ring buffer -const double SoundSDL::buftime = 0.300; +// Hold up to 100 ms of data in the ring buffer +const double SoundSDL::buftime = 0.100; SoundSDL::SoundSDL(): samples_buf(0),