diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-09-18 04:18:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-09-18 04:18:31 +0300 |
commit | ea7ce2d1099761d4f10a1985cc1491dd306093fb (patch) | |
tree | 0ecc2ba76c949af2876ea3fe532d3796d4d0f666 /src/soundmanager.cpp | |
parent | d5a295a5ef8338a6d292bb3c60bddcfb8baf17bc (diff) | |
download | manaplus-ea7ce2d1099761d4f10a1985cc1491dd306093fb.tar.gz manaplus-ea7ce2d1099761d4f10a1985cc1491dd306093fb.tar.bz2 manaplus-ea7ce2d1099761d4f10a1985cc1491dd306093fb.tar.xz manaplus-ea7ce2d1099761d4f10a1985cc1491dd306093fb.zip |
Replace SDL macro defines to SDL_GetError.
Diffstat (limited to 'src/soundmanager.cpp')
-rw-r--r-- | src/soundmanager.cpp | 4 |
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) |