diff options
author | neonloop | 2021-03-31 21:14:22 +0000 |
---|---|---|
committer | neonloop | 2021-03-31 21:14:22 +0000 |
commit | 83932ce888f9148a8d49a5f9b7d3dd4ddf71822a (patch) | |
tree | ded775d2d553c8cf00667b7ca4159c766840e6b1 /shell | |
parent | c85afd6f386706d01a3f234a13a7de4a93c66b67 (diff) | |
download | snes9x2002-83932ce888f9148a8d49a5f9b7d3dd4ddf71822a.tar.gz snes9x2002-83932ce888f9148a8d49a5f9b7d3dd4ddf71822a.tar.bz2 snes9x2002-83932ce888f9148a8d49a5f9b7d3dd4ddf71822a.zip |
Favors smoother audio over smoother video
Diffstat (limited to 'shell')
-rw-r--r-- | shell/audio/sdl/sound_output.c | 4 | ||||
-rw-r--r-- | shell/emu/core.c | 2 | ||||
-rw-r--r-- | shell/headers/shared.h | 2 |
3 files changed, 4 insertions, 4 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 */ diff --git a/shell/emu/core.c b/shell/emu/core.c index 41bd095..5a17250 100644 --- a/shell/emu/core.c +++ b/shell/emu/core.c @@ -123,7 +123,7 @@ static const uint32_t TblSkip[4][4] = { #endif #ifdef AUDIO_FRAMESKIP -#define MAX_SKIP_COUNT 3 +#define MAX_SKIP_COUNT 4 static uint32_t SkipCnt = 0; #endif diff --git a/shell/headers/shared.h b/shell/headers/shared.h index 0ceff9d..e16ac07 100644 --- a/shell/headers/shared.h +++ b/shell/headers/shared.h @@ -6,7 +6,7 @@ #define SOUND_SAMPLES_SIZE 1024 #elif defined(TRIMUI) #define SOUND_OUTPUT_FREQUENCY 32000 -#define SOUND_SAMPLES_SIZE 1024 +#define SOUND_SAMPLES_SIZE 512 #elif defined(RS97) #define SOUND_OUTPUT_FREQUENCY 22050 #define SOUND_SAMPLES_SIZE 1024 |