From: Matthias Braun Date: Tue, 16 Jan 2007 15:45:35 +0000 (+0000) Subject: older openal drivers miss alcGetString, several win32 people seem to have such an... X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=b993cd25916cb121cae636b8fe2a7be02bcb4893;p=supertux.git older openal drivers miss alcGetString, several win32 people seem to have such an old driver, so don't report extended alc error messages if we're not in debug mode SVN-Revision: 4581 --- diff --git a/src/audio/sound_manager.cpp b/src/audio/sound_manager.cpp index b3eb73137..fd3320e0e 100644 --- a/src/audio/sound_manager.cpp +++ b/src/audio/sound_manager.cpp @@ -35,6 +35,16 @@ #include "log.hpp" #include "timer.hpp" +#ifndef DEBUG + /** Older openal versions often miss this function and it isn't that vital for + * supertux... + */ +#ifdef alcGetString +#undef alcGetString +#endif +#define alcGetString(x,y) "" +#endif + SoundManager* sound_manager = 0; SoundManager::SoundManager()