From c7d6e20f41698b9299ee2a30e38550d0707fad91 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Wed, 2 Mar 2022 00:38:01 +0200 Subject: [PATCH 26/26] Fix compile with --enable-sdl-mixer=sdl Reported by alienvalkyrie See osdn #43999 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 a4e9f80839..dbc8997aa8 100644 --- a/client/audio_sdl.c +++ b/client/audio_sdl.c @@ -193,7 +193,9 @@ static void quit_sdl_audio(void) **************************************************************************/ static int init_sdl_audio(void) { +#ifndef AUDIO_SDL1_2 SDL_SetHint(SDL_HINT_AUDIO_RESAMPLING_MODE, "medium"); +#endif if (SDL_WasInit(SDL_INIT_VIDEO)) { return SDL_InitSubSystem(SDL_INIT_AUDIO | SDL_INIT_NOPARACHUTE); -- 2.34.1