[Orxonox-commit 3005] r7701 - code/branches/ois_update/src/orxonox/sound

rgrieder at orxonox.net rgrieder at orxonox.net
Fri Dec 3 00:40:39 CET 2010


Author: rgrieder
Date: 2010-12-03 00:40:39 +0100 (Fri, 03 Dec 2010)
New Revision: 7701

Modified:
   code/branches/ois_update/src/orxonox/sound/SoundManager.cc
Log:
Clear openAL error before starting.

Modified: code/branches/ois_update/src/orxonox/sound/SoundManager.cc
===================================================================
--- code/branches/ois_update/src/orxonox/sound/SoundManager.cc	2010-12-02 22:33:41 UTC (rev 7700)
+++ code/branches/ois_update/src/orxonox/sound/SoundManager.cc	2010-12-02 23:40:39 UTC (rev 7701)
@@ -74,6 +74,10 @@
     {
         RegisterRootObject(SoundManager);
 
+        // Clear error messages (might be problematic on some systems)
+        alGetError();
+        alutGetError();
+
         // See whether we even want to load
         bool bDisableSound_ = false;
         SetConfigValue(bDisableSound_, false);




More information about the Orxonox-commit mailing list