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/BaseSound.h

    r7854 r7856  
    5151
    5252        virtual void play()  { this->doPlay(); }
    53         virtual void stop()  { this->doStop(); }
     53        virtual bool stop()  { return this->doStop(); } // returns true if the sound source was destroyed
    5454        virtual void pause() { this->doPause(); }
    5555
     
    8686
    8787        void doPlay();
    88         void doStop();
     88        bool doStop(); // returns true if the sound source was destroyed
    8989        void doPause();
    9090
Note: See TracChangeset for help on using the changeset viewer.