summaryrefslogtreecommitdiff
path: root/src/soundmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-09-18 04:18:31 +0300
committerAndrei Karas <akaras@inbox.ru>2017-09-18 04:18:31 +0300
commitea7ce2d1099761d4f10a1985cc1491dd306093fb (patch)
tree0ecc2ba76c949af2876ea3fe532d3796d4d0f666 /src/soundmanager.cpp
parentd5a295a5ef8338a6d292bb3c60bddcfb8baf17bc (diff)
downloadplus-ea7ce2d1099761d4f10a1985cc1491dd306093fb.tar.gz
plus-ea7ce2d1099761d4f10a1985cc1491dd306093fb.tar.bz2
plus-ea7ce2d1099761d4f10a1985cc1491dd306093fb.tar.xz
plus-ea7ce2d1099761d4f10a1985cc1491dd306093fb.zip
Replace SDL macro defines to SDL_GetError.
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)