[Orxonox-commit 3849] r8525 - code/branches/unity_build/src/orxonox/sound
rgrieder at orxonox.net
rgrieder at orxonox.net
Sat May 21 04:47:23 CEST 2011
Author: rgrieder
Date: 2011-05-21 04:47:22 +0200 (Sat, 21 May 2011)
New Revision: 8525
Modified:
code/branches/unity_build/src/orxonox/sound/BaseSound.cc
Log:
Another hierarchy initialisation bug: BaseSound d'tor was always stopping a sound source. This one is a bit trickier because BaseSound is not a BaseObject and therefore does not have the isInitialized() method. However an instance is still being created through WorldSound.
This change also 'fixes' the POSIX IOConsole loosing lines between its construction and its first update because OpenAL sends output to STDOUT.
@Kevin: this could very well explain your mysterious error code.
Modified: code/branches/unity_build/src/orxonox/sound/BaseSound.cc
===================================================================
--- code/branches/unity_build/src/orxonox/sound/BaseSound.cc 2011-05-21 02:23:19 UTC (rev 8524)
+++ code/branches/unity_build/src/orxonox/sound/BaseSound.cc 2011-05-21 02:47:22 UTC (rev 8525)
@@ -59,7 +59,8 @@
BaseSound::~BaseSound()
{
- this->stop();
+ if (this->state_ != Stopped)
+ this->stop();
// Release buffer
if (this->soundBuffer_ != NULL)
{
More information about the Orxonox-commit
mailing list