From 47644fcdbc0b879ebffd916c34c695b4362bd923 Mon Sep 17 00:00:00 2001 From: jdah <20308439+jdah@users.noreply.github.com> Date: Thu, 22 Apr 2021 14:33:32 +0200 Subject: [PATCH] Bump BUFFER_MS to 40 --- src/sound.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sound.c b/src/sound.c index cf567bf..1ee76d4 100644 --- a/src/sound.c +++ b/src/sound.c @@ -148,9 +148,10 @@ static const f64 NOTES[NUM_OCTAVES * OCTAVE_SIZE] = { #define DSP_IRQ 0x80 #define SAMPLE_RATE 48000 -#define BUFFER_MS 30 +#define BUFFER_MS 40 #define BUFFER_SIZE ((size_t) (SAMPLE_RATE * (BUFFER_MS / 1000.0))) + static i16 buffer[BUFFER_SIZE]; static bool buffer_flip = false;