[Orxonox-commit 1679] r6397 - code/branches/presentation2/src/orxonox/sound

rgrieder at orxonox.net rgrieder at orxonox.net
Tue Dec 22 20:44:08 CET 2009


Author: rgrieder
Date: 2009-12-22 20:44:07 +0100 (Tue, 22 Dec 2009)
New Revision: 6397

Modified:
   code/branches/presentation2/src/orxonox/sound/BaseSound.cc
Log:
Fixed obviously pointless statement order in BaseSound.

Modified: code/branches/presentation2/src/orxonox/sound/BaseSound.cc
===================================================================
--- code/branches/presentation2/src/orxonox/sound/BaseSound.cc	2009-12-22 19:35:05 UTC (rev 6396)
+++ code/branches/presentation2/src/orxonox/sound/BaseSound.cc	2009-12-22 19:44:07 UTC (rev 6397)
@@ -180,9 +180,9 @@
         this->pitch_ = pitch;
         if (alIsSource(this->audioSource_))
         {
+            alSourcef(this->audioSource_, AL_PITCH, pitch);
             if (int error = alGetError())
                 COUT(2) << "Sound: Error setting pitch: " << SoundManager::getALErrorString(error) << std::endl;
-            alSourcef(this->audioSource_, AL_PITCH, pitch);
         }
     }
 




More information about the Orxonox-commit mailing list