]> git.mxchange.org Git - simgear.git/commitdiff
a slightly more readable version of the test
authorehofman <ehofman>
Thu, 26 Nov 2009 13:05:44 +0000 (13:05 +0000)
committerTim Moore <timoore@redhat.com>
Thu, 26 Nov 2009 15:05:46 +0000 (16:05 +0100)
simgear/sound/soundmgr_openal.cxx

index 010b548d6a274caca07dae45a402b6fbe18d31fe..918b05da5a65f9f7d25ffa6d8749b760d4605e3f 100644 (file)
@@ -156,10 +156,12 @@ void SGSoundMgr::init() {
         else break;
     }
 
-    const char *vendor = (char *)alGetString(AL_VENDOR);
-    const char *renderer = (char *)alGetString(AL_RENDERER);
-    if (  strcmp(vendor, "OpenAL Community") || strcmp(renderer, "Software")
-          || strcmp(renderer, "OpenAL Sample Implementation") ) {
+    string vendor = alGetString(AL_VENDOR);
+    string renderer = alGetString(AL_RENDERER);
+    if ( vendor != "OpenAL Community" ||
+         (renderer != "Software" && renderer != "OpenAL Sample Implementation")
+       )
+    {
        _bad_doppler = true;
     }