Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Apr 15, 2006, 9:48:08 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: now the sound gets correcty detached from the source, when a SoundSource releses its alSource

File:
1 edited

Legend:

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

    r7296 r7297  
    136136int GameWorld::createAudioThread(void* gameWorld)
    137137{
    138 /*  GameWorld* gw = (GameWorld*)gameWorld;
     138  GameWorld* gw = (GameWorld*)gameWorld;
    139139  printf("STARTIG AUDIO THREAD\n");
    140140  if(gw->dataTank && gw->dataTank->music != NULL)
     
    146146      gw->dataTank->music->update();
    147147    SDL_Delay(1);
    148   }*/
    149   //printf("End the AudioThread\n");
     148  }
     149  printf("End the AudioThread\n");
    150150}
    151151
     
    229229  if (this->audioThread == NULL)
    230230    this->audioThread = SDL_CreateThread(GameWorld::createAudioThread, (void*)this);
    231 
    232   if (this->dataTank->music != NULL)
    233     this->dataTank->music->playback();
    234231
    235232  this->run();
     
    413410  PNode::getNullParent()->updateNode (this->dtS);
    414411  SoundEngine::getInstance()->update();
    415 
    416   if (this->dataTank->music != NULL)
    417     this->dataTank->music->update();
    418 
    419412}
    420413
Note: See TracChangeset for help on using the changeset viewer.