- Timestamp:
- Apr 13, 2006, 11:20:51 PM (19 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/sound/sound_source.cc
r7287 r7288 68 68 if (unlikely(this->sourceID == 0)) 69 69 SoundEngine::getInstance()->popALSource(this->sourceID); 70 assert (this->sourceID != 0);70 // assert (this->sourceID != 0); 71 71 72 72 alSourceStop(this->sourceID); -
trunk/src/story_entities/game_world.cc
r7287 r7288 140 140 GameWorld* gw = (GameWorld*)gameWorld; 141 141 printf("STARTIG AUDIO THREAD\n"); 142 if(gw->dataTank && gw->dataTank->music != NULL) 143 gw->dataTank->music->playback(); 144 142 145 while (gw->bRunning) 143 146 { 144 if(gw->dataTank ->music != NULL)145 gw->dataTank->music-> playback();147 if(gw->dataTank && gw->dataTank->music != NULL) 148 gw->dataTank->music->update(); 146 149 SDL_Delay(5); 147 150 } … … 234 237 this->bRunning = false; 235 238 236 // SDL_KillThread(this->audioThread);239 // SDL_KillThread(this->audioThread); 237 240 this->audioThread = NULL; 238 241 } … … 396 399 PNode::getNullParent()->updateNode (this->dtS); 397 400 SoundEngine::getInstance()->update(); 398 399 if (this->dataTank->music != NULL)400 this->dataTank->music->update();401 401 } 402 402 … … 412 412 this->dataTank->objectManager->getObjectList(OM_GROUP_00_PROJ)); 413 413 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)); 415 415 416 416 CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->getObjectList(OM_GROUP_00),
Note: See TracChangeset
for help on using the changeset viewer.