changed default audio replay sample rate back to 22.05 kHz
authorHolger Schemel <info@artsoft.org>
Fri, 8 Mar 2024 09:27:54 +0000 (10:27 +0100)
committerHolger Schemel <info@artsoft.org>
Fri, 8 Mar 2024 09:31:17 +0000 (10:31 +0100)
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

index 3ca946fb1257bdf45f12e035c6cd8da8938d2a66..3e392a599d02fe1e949d866839f195b8d97bdd00 100644 (file)
@@ -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