Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7288 in orxonox.OLD for trunk


Ignore:
Timestamp:
Apr 13, 2006, 11:20:51 PM (19 years ago)
Author:
bensch
Message:

thread works, but…. hmm… it is not what i want… no sound :/

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/sound/sound_source.cc

    r7287 r7288  
    6868  if (unlikely(this->sourceID == 0))
    6969    SoundEngine::getInstance()->popALSource(this->sourceID);
    70   assert (this->sourceID != 0);
     70//  assert (this->sourceID != 0);
    7171
    7272  alSourceStop(this->sourceID);
  • trunk/src/story_entities/game_world.cc

    r7287 r7288  
    140140  GameWorld* gw = (GameWorld*)gameWorld;
    141141  printf("STARTIG AUDIO THREAD\n");
     142  if(gw->dataTank && gw->dataTank->music != NULL)
     143    gw->dataTank->music->playback();
     144
    142145  while (gw->bRunning)
    143146  {
    144     if(gw->dataTank->music != NULL)
    145       gw->dataTank->music->playback();
     147    if(gw->dataTank && gw->dataTank->music != NULL)
     148      gw->dataTank->music->update();
    146149    SDL_Delay(5);
    147150  }
     
    234237  this->bRunning = false;
    235238
    236 //  SDL_KillThread(this->audioThread);
     239  //  SDL_KillThread(this->audioThread);
    237240  this->audioThread = NULL;
    238241}
     
    396399  PNode::getNullParent()->updateNode (this->dtS);
    397400  SoundEngine::getInstance()->update();
    398 
    399   if (this->dataTank->music != NULL)
    400     this->dataTank->music->update();
    401401}
    402402
     
    412412      this->dataTank->objectManager->getObjectList(OM_GROUP_00_PROJ));
    413413  CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->getObjectList(OM_GROUP_00),
    414   this->dataTank->objectManager->getObjectList(OM_GROUP_01));
     414      this->dataTank->objectManager->getObjectList(OM_GROUP_01));
    415415
    416416  CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->getObjectList(OM_GROUP_00),
Note: See TracChangeset for help on using the changeset viewer.