From: ehofman Date: Thu, 26 Nov 2009 12:19:57 +0000 (+0000) Subject: Also test for older versions of OpenAL-Sample X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f6513127ce901831886fa7299ff9a236f8eca928;p=simgear.git Also test for older versions of OpenAL-Sample --- diff --git a/simgear/sound/soundmgr_openal.cxx b/simgear/sound/soundmgr_openal.cxx index 531298ae..010b548d 100644 --- a/simgear/sound/soundmgr_openal.cxx +++ b/simgear/sound/soundmgr_openal.cxx @@ -156,8 +156,10 @@ void SGSoundMgr::init() { else break; } + const char *vendor = (char *)alGetString(AL_VENDOR); const char *renderer = (char *)alGetString(AL_RENDERER); - if ( strcmp(renderer, "OpenAL Sample Implementation") ) { + if ( strcmp(vendor, "OpenAL Community") || strcmp(renderer, "Software") + || strcmp(renderer, "OpenAL Sample Implementation") ) { _bad_doppler = true; }