summaryrefslogtreecommitdiff
path: root/src/soundmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/soundmanager.cpp')
-rw-r--r--src/soundmanager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/soundmanager.cpp b/src/soundmanager.cpp
index a4ee3acee..9a325b7b6 100644
--- a/src/soundmanager.cpp
+++ b/src/soundmanager.cpp
@@ -173,7 +173,7 @@ void SoundManager::init()
if (res < 0)
{
logger->log("SoundManager::init Could not initialize audio: %s",
- Mix_GetError());
+ SDL_GetError());
if (Mix_OpenAudio(22010, MIX_DEFAULT_FORMAT, 2, audioBuffer) < 0)
return;
logger->log("Fallback to stereo audio");
@@ -228,7 +228,7 @@ void SoundManager::testAudio()
if (SDL_OpenAudio(&desired, &actual) < 0)
{
logger->log("SoundManager::testAudio error: %s",
- Mix_GetError());
+ SDL_GetError());
return;
}
if (desired.freq != actual.freq)