From 98e0b9c7c61362d3205ea876911bfa1bd57a7ca2 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Fri, 8 Mar 2024 10:27:54 +0100 Subject: [PATCH] changed default audio replay sample rate back to 22.05 kHz When using 44.1 kHz sample rate, upsampling larger audio files with lower sample rate causes a crash in some versions of the SDL library. --- src/libgame/sound.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libgame/sound.h b/src/libgame/sound.h index 3ca946fb..3e392a59 100644 --- a/src/libgame/sound.h +++ b/src/libgame/sound.h @@ -34,7 +34,7 @@ #define AUDIO_FORMAT_LE (1 << 2) #define AUDIO_FORMAT_BE (1 << 3) -#define DEFAULT_AUDIO_SAMPLE_RATE AUDIO_SAMPLE_RATE_44100 +#define DEFAULT_AUDIO_SAMPLE_RATE AUDIO_SAMPLE_RATE_22050 #if defined(PLATFORM_WINDOWS) #define DEFAULT_AUDIO_FRAGMENT_SIZE AUDIO_FRAGMENT_SIZE_1024 -- 2.34.1