From ae087992cdd7702f501bd5d00b1117cc62228772 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Thu, 3 Mar 2022 22:39:08 +0200 Subject: [PATCH 17/17] Check that SDL2 >= 2.0.6 before setting SDL_HINT_AUDIO_RESAMPLING_MODE See osdn #44018 Signed-off-by: Marko Lindqvist --- client/audio_sdl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/audio_sdl.c b/client/audio_sdl.c index dbc8997aa8..fc8c899052 100644 --- a/client/audio_sdl.c +++ b/client/audio_sdl.c @@ -193,7 +193,7 @@ static void quit_sdl_audio(void) **************************************************************************/ static int init_sdl_audio(void) { -#ifndef AUDIO_SDL1_2 +#if defined(AUDIO_SDL1_2) && SDL_VERSION_ATLEAST(2, 0, 6) SDL_SetHint(SDL_HINT_AUDIO_RESAMPLING_MODE, "medium"); #endif -- 2.34.1