From: Holger Schemel Date: Fri, 8 Mar 2024 09:27:54 +0000 (+0100) Subject: changed default audio replay sample rate back to 22.05 kHz X-Git-Tag: 4.4.0.0-test-1~237 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=98e0b9c7c61362d3205ea876911bfa1bd57a7ca2;p=rocksndiamonds.git 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. --- 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