Changed from 48000 Hz to 44100 Hz.

48000 Hz was causing problems with the sound. Who chose such an odd
number?
This commit is contained in:
onpon4 2015-02-26 10:22:22 -05:00
parent 748006c2dc
commit ed621bf3a4
1 changed files with 2 additions and 2 deletions

View File

@ -219,9 +219,9 @@ void initSystem()
if (engine.useAudio) 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"); printf("Sound and Music will be disabled\n");
engine.useAudio = false; engine.useAudio = false;
} }