Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 11, 2011, 4:05:55 PM (13 years ago)
Author:
landauf
Message:

fixed (?) an endless loop in SoundManager::preUpdate if a non-looping ambient sound faded out. maybe solved the problem by returning a bool from stop() depending on whether or not the sound source was destroyed.

someone who knows more about the sound system should probably have a look at this.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/sound/AmbientSound.cc

    r7854 r7856  
    5757    }
    5858
    59     void AmbientSound::stop()
     59    bool AmbientSound::stop()
    6060    {
    6161        if (GameMode::playsSound())
    6262            SoundManager::getInstance().unregisterAmbientSound(this);
     63        return false; // sound source not (yet) destroyed - return false
    6364    }
    6465
Note: See TracChangeset for help on using the changeset viewer.