aboutsummaryrefslogtreecommitdiff
path: root/shell/audio/sdl
diff options
context:
space:
mode:
authorneonloop2021-04-03 00:29:33 +0000
committerneonloop2021-04-03 00:29:33 +0000
commit7c6c5f3bb6f8084ed5ae6eaafe0db14c5afe49bc (patch)
tree1dc09c9531c5424dd2e0e37d859b0b380d2ce756 /shell/audio/sdl
parent08ba753083031def20d86a6b7daff1754a4d3c8a (diff)
downloadsnesemu-7c6c5f3bb6f8084ed5ae6eaafe0db14c5afe49bc.tar.gz
snesemu-7c6c5f3bb6f8084ed5ae6eaafe0db14c5afe49bc.tar.bz2
snesemu-7c6c5f3bb6f8084ed5ae6eaafe0db14c5afe49bc.zip
Favors smoother audio over smoother video
Diffstat (limited to 'shell/audio/sdl')
-rw-r--r--shell/audio/sdl/sound_output.c4
1 files changed, 2 insertions, 2 deletions
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 */