Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7308 in orxonox.OLD for trunk/src/story_entities


Ignore:
Timestamp:
Apr 16, 2006, 11:08:25 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: added a mutex, that should prevent the SoundEngine from failing, when jumping around in the file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/story_entities/game_world.cc

    r7307 r7308  
    274274    this->display ();
    275275
     276    /// TODO REMOVE THIS CRAP
    276277    if (this->dataTank->music)
    277278    {
    278       if (this->cycle%100 == 0)
     279/*      if (this->cycle%100 == 0)
    279280      {
    280281        printf("Cycle %d  ", this->cycle);
    281282        this->dataTank->music->printState();
    282283      }
     284      if (this->cycle %10)
     285        this->dataTank->music->jumpTo((float)this->cycle*(float)rand()/(float)RAND_MAX);
    283286      if (this->cycle % 4 == 0)
    284287        this->dataTank->music->pause();
     
    286289        this->dataTank->music->play();
    287290      if (this->cycle % 11 == 0)
    288         this->dataTank->music->stop();
     291      this->dataTank->music->stop(); */
    289292    }
    290293  }
Note: See TracChangeset for help on using the changeset viewer.