Changeset 7292 in orxonox.OLD for trunk/src/story_entities
- Timestamp:
- Apr 14, 2006, 11:18:42 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/game_world.cc
r7291 r7292 136 136 int GameWorld::createAudioThread(void* gameWorld) 137 137 { 138 GameWorld* gw = (GameWorld*)gameWorld;138 /* GameWorld* gw = (GameWorld*)gameWorld; 139 139 printf("STARTIG AUDIO THREAD\n"); 140 140 if(gw->dataTank && gw->dataTank->music != NULL) … … 146 146 gw->dataTank->music->update(); 147 147 SDL_Delay(1); 148 } 148 }*/ 149 149 printf("End the AudioThread\n"); 150 150 } … … 230 230 this->audioThread = SDL_CreateThread(GameWorld::createAudioThread, (void*)this); 231 231 232 if (this->dataTank->music != NULL) 233 this->dataTank->music->playback(); 234 232 235 this->run(); 233 236 } … … 241 244 PRINTF(3)("GameWorld::stop() - got stop signal\n"); 242 245 this->bRunning = false; 246 247 if (this->audioThread != NULL) 248 { 249 this->bRunning = false; 250 SDL_WaitThread(this->audioThread, NULL); 251 this->audioThread = NULL; 252 } 243 253 244 254 this->audioThread = NULL; … … 403 413 PNode::getNullParent()->updateNode (this->dtS); 404 414 SoundEngine::getInstance()->update(); 415 416 if (this->dataTank->music != NULL) 417 this->dataTank->music->update(); 418 405 419 } 406 420
Note: See TracChangeset
for help on using the changeset viewer.