[Orxonox-commit 1184] r5905 - code/branches/core5/src/orxonox/sound

rgrieder at orxonox.net rgrieder at orxonox.net
Thu Oct 8 11:49:01 CEST 2009


Author: rgrieder
Date: 2009-10-08 11:49:01 +0200 (Thu, 08 Oct 2009)
New Revision: 5905

Modified:
   code/branches/core5/src/orxonox/sound/SoundManager.cc
Log:
Improved error message for the case OpenAL was not actually installed.

Modified: code/branches/core5/src/orxonox/sound/SoundManager.cc
===================================================================
--- code/branches/core5/src/orxonox/sound/SoundManager.cc	2009-10-07 22:00:21 UTC (rev 5904)
+++ code/branches/core5/src/orxonox/sound/SoundManager.cc	2009-10-08 09:49:01 UTC (rev 5905)
@@ -50,7 +50,13 @@
         COUT(3) << "OpenAL: Opening sound device..." << std::endl;
         this->device_ = alcOpenDevice(NULL);
         if (this->device_ == NULL)
+        {
+            COUT(0) << "OpenaAL: Could not open sound device. Have you installed OpenAL?" << std::endl;
+#ifdef ORXONOX_PLATFORM_WINDOWS
+            COUT(0) << "Just getting the DLL with the dependencies is not enough for Windows (esp. Windows 7)!" << std::endl;
+#endif
             ThrowException(InitialisationFailed, "OpenAL error: Could not open sound device.");
+        }
         Loki::ScopeGuard closeDeviceGuard = Loki::MakeGuard(&alcCloseDevice, this->device_);
 
         COUT(3) << "OpenAL: Sound device opened" << std::endl;




More information about the Orxonox-commit mailing list