summaryrefslogtreecommitdiff
path: root/src/sound.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sound.cpp')
-rw-r--r--src/sound.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sound.cpp b/src/sound.cpp
index 8777625df..edabe6bf8 100644
--- a/src/sound.cpp
+++ b/src/sound.cpp
@@ -130,7 +130,9 @@ void Sound::init()
{
logger->log("Sound::init Could not initialize audio: %s",
Mix_GetError());
- return;
+ if (Mix_OpenAudio(22010, MIX_DEFAULT_FORMAT, 2, audioBuffer) < 0)
+ return;
+ logger->log("Fallback to stereo audio");
}
Mix_AllocateChannels(16);