From 83932ce888f9148a8d49a5f9b7d3dd4ddf71822a Mon Sep 17 00:00:00 2001 From: neonloop Date: Wed, 31 Mar 2021 21:14:22 +0000 Subject: Favors smoother audio over smoother video --- shell/audio/sdl/sound_output.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'shell/audio') diff --git a/shell/audio/sdl/sound_output.c b/shell/audio/sdl/sound_output.c index 0758718..0e0d504 100644 --- a/shell/audio/sdl/sound_output.c +++ b/shell/audio/sdl/sound_output.c @@ -7,7 +7,7 @@ #include "sound_output.h" -#define UNDERRUN_THRESHOLD 0.5 +#define UNDERRUN_THRESHOLD 0.75 static int32_t BUFFSIZE; static uint8_t *buffer; @@ -63,7 +63,7 @@ uint32_t Audio_Init() { SDL_AudioSpec aspec, obtained; - BUFFSIZE = (SOUND_SAMPLES_SIZE * 2 * 2) * 4; + BUFFSIZE = (SOUND_SAMPLES_SIZE * 2 * 2) * 8; buffer = (uint8_t *) malloc(BUFFSIZE); /* Add some silence to the buffer */ -- cgit v1.2.3