From 48d485c2a522c78a0ee203e1c658d5d1e716648a Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 19 Feb 2022 03:00:02 +0200 Subject: [PATCH 41/41] Request medium audio resampling mode from SDL2_mixer This is only a hint for the system to provide a bit better quality audio if it's capable (has required libraries etc) See osdn #43549 Signed-off-by: Marko Lindqvist --- client/audio_sdl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/audio_sdl.c b/client/audio_sdl.c index 47c6cc9d00..7b49176dbf 100644 --- a/client/audio_sdl.c +++ b/client/audio_sdl.c @@ -204,6 +204,8 @@ static void quit_sdl_audio(void) **************************************************************************/ static int init_sdl_audio(void) { + SDL_SetHint(SDL_HINT_AUDIO_RESAMPLING_MODE, "medium"); + if (SDL_WasInit(SDL_INIT_VIDEO)) { return SDL_InitSubSystem(SDL_INIT_AUDIO | SDL_INIT_NOPARACHUTE); } else { -- 2.34.1