From ed621bf3a4dbd49e0d8bf71f49321edc0018fa5a Mon Sep 17 00:00:00 2001 From: onpon4 Date: Thu, 26 Feb 2015 10:22:22 -0500 Subject: [PATCH] Changed from 48000 Hz to 44100 Hz. 48000 Hz was causing problems with the sound. Who chose such an odd number? --- src/init.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/init.cpp b/src/init.cpp index 3a7c9f2..d433a98 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -219,9 +219,9 @@ void initSystem() if (engine.useAudio) { - if (Mix_OpenAudio(48000, AUDIO_S16, engine.useAudio * 2, 1024) < 0) + if (Mix_OpenAudio(44100, AUDIO_S16, engine.useAudio * 2, 1024) < 0) { - printf("Warning: Couldn't set 48000 Hz 16-bit stereo audio - Reason: %s\n", Mix_GetError()); + printf("Warning: Couldn't set 44100 Hz 16-bit stereo audio - Reason: %s\n", Mix_GetError()); printf("Sound and Music will be disabled\n"); engine.useAudio = false; }