]> git.mxchange.org Git - flightgear.git/blobdiff - tests/alcinfo.cxx
commradio: improvements for atis speech
[flightgear.git] / tests / alcinfo.cxx
index 2f569390d11d22f1d935fa212cf3f93bf22ecc69..e567d73cd0b4ed129e5c46926677c21b5d68f1d0 100644 (file)
@@ -145,36 +145,13 @@ int main(int argc, char **argv)
    if ((error = alGetError()) != AL_NO_ERROR)
       printf("Error #%x: %s\n", error, alGetString(error));
    else if (!s)
-      printf("Quering AL_VERSION returned NULL pointer!\n");
+      printf("Querying AL_VERSION returned NULL pointer!\n");
    else
       printf("OpenAL version string: %s\n", s);
 
    s = (char *)alGetString(AL_EXTENSIONS);
    printExtensions ("OpenAL extensions", ' ', s);
-   testForALCError(device);
-
-/* alut testing mechanism */
-   context = alcGetCurrentContext();
-   if (context == NULL)
-   {
-      printf("Error: no current context\n");
-   }
-   else
-   {
-      if (alGetError () != AL_NO_ERROR)
-      {
-         printf("Alert: AL error on entry\n");
-      }
-      else
-      {
-         if (alcGetError (alcGetContextsDevice (context)) != ALC_NO_ERROR)
-         {
-            printf("Alert: ALC error on entry\n");
-         }
-      }
-   }
-/* end of alut test */
+   testForALCError(device); 
    
    if (alcMakeContextCurrent(NULL) == 0)
       printf("alcMakeContextCurrent failed.\n");