From ed7314185604388f6ca5cf6f8f2612df6f25680e Mon Sep 17 00:00:00 2001 From: Ryan Kuba Date: Sun, 7 Jan 2024 07:57:56 -0800 Subject: [PATCH] change default audio settings for emscripten builds (#16079) --- config.def.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config.def.h b/config.def.h index 2ddd4ed6b2a..25f0dbe4634 100644 --- a/config.def.h +++ b/config.def.h @@ -1099,6 +1099,9 @@ #elif defined(_3DS) || defined(RETROFW) #define DEFAULT_OUTPUT_RATE 32730 #define DEFAULT_INPUT_RATE 32730 +#elif defined(EMSCRIPTEN) +#define DEFAULT_OUTPUT_RATE 44100 +#define DEFAULT_INPUT_RATE 44100 #else #define DEFAULT_OUTPUT_RATE 48000 #define DEFAULT_INPUT_RATE 48000 @@ -1607,7 +1610,7 @@ #if defined(__QNX__) || defined(_XBOX1) || defined(_XBOX360) || (defined(__MACH__) && defined(IOS)) || defined(ANDROID) || defined(WIIU) || defined(HAVE_NEON) || defined(GEKKO) || defined(__ARM_NEON__) || defined(__PS3__) #define DEFAULT_AUDIO_RESAMPLER_QUALITY_LEVEL RESAMPLER_QUALITY_LOWER -#elif defined(PSP) || defined(_3DS) || defined(VITA) || defined(PS2) || defined(DINGUX) +#elif defined(PSP) || defined(_3DS) || defined(VITA) || defined(PS2) || defined(DINGUX) || defined(EMSCRIPTEN) #define DEFAULT_AUDIO_RESAMPLER_QUALITY_LEVEL RESAMPLER_QUALITY_LOWEST #else #define DEFAULT_AUDIO_RESAMPLER_QUALITY_LEVEL RESAMPLER_QUALITY_NORMAL