projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d6032c
)
changed default audio replay sample rate back to 22.05 kHz
author
Holger Schemel
<info@artsoft.org>
Fri, 8 Mar 2024 09:27:54 +0000
(10:27 +0100)
committer
Holger 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
patch
|
blob
|
history
diff --git
a/src/libgame/sound.h
b/src/libgame/sound.h
index 3ca946fb1257bdf45f12e035c6cd8da8938d2a66..3e392a599d02fe1e949d866839f195b8d97bdd00 100644
(file)
--- 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_
4410
0
+#define DEFAULT_AUDIO_SAMPLE_RATE AUDIO_SAMPLE_RATE_
2205
0
#if defined(PLATFORM_WINDOWS)
#define DEFAULT_AUDIO_FRAGMENT_SIZE AUDIO_FRAGMENT_SIZE_1024