- Timestamp:
- Feb 2, 2006, 6:24:50 PM (19 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/sound/ogg_player.cc
r6872 r6987 47 47 } 48 48 49 OggPlayer::~ 50 { 51 this->release();49 OggPlayer::~OggPlayer() 50 { 51 //this->release(); 52 52 } 53 53 … … 80 80 if((result = ov_open(oggFile, &oggStream, NULL, 0)) < 0) 81 81 { 82 fclose(oggFile);83 84 82 PRINTF(2)("Could not open Ogg stream. %s", errorString(result)); 85 83 fclose(oggFile); … … 204 202 bool OggPlayer::stream(ALuint buffer) 205 203 { 204 if (!this->trackLoaded) 205 return false; 206 206 char pcm[BUFFER_SIZE]; 207 207 int size = 0; -
trunk/src/story_entities/game_world_data.cc
r6985 r6987 323 323 324 324 if (this->music != NULL) 325 delete this->music;325 this->setSoundTrack(NULL); 326 326 this->music = NULL; 327 327 /* stop the sound eninge */ … … 338 338 if (this->music != NULL) 339 339 delete this->music; 340 341 PRINTF(3)("Setting Sound Track to %s\n", name); 342 this->music = (OggPlayer*)ResourceManager::getInstance()->load(name, OGG, RP_LEVEL); 343 } 344 345 340 this->music = NULL; 341 342 if (name != NULL) 343 { 344 PRINTF(3)("Setting Sound Track to %s\n", name); 345 this->music = (OggPlayer*)ResourceManager::getInstance()->load(name, OGG, RP_LEVEL); 346 } 347 } 348 349 -
trunk/src/world_entities/playable.cc
r6986 r6987 162 162 if (this->currentPlayer != NULL && player != NULL) 163 163 { 164 printf("No Change in Playable\n");165 164 return false; 166 165 } … … 169 168 if (this->currentPlayer != NULL && player == NULL) 170 169 { 171 PRINTF( 0)("Player gets ejected\n");170 PRINTF(4)("Player gets ejected\n"); 172 171 173 172 // unsubscibe all events. … … 192 191 if (this->currentPlayer == NULL && player != NULL) 193 192 { 194 PRINTF( 0)("New Player gets inside\n");193 PRINTF(4)("New Player gets inside\n"); 195 194 this->currentPlayer = player; 196 195 if (this->currentPlayer->getPlayable() != this) … … 207 206 } 208 207 209 printf("none\n");210 208 return false; 211 209 } -
trunk/src/world_entities/player.cc
r6986 r6987 61 61 if (this->playable != NULL) 62 62 { 63 printf("Player gets ejected from Playable\n");63 PRINTF(4)("Player gets ejected from Playable\n"); 64 64 this->hud.setEnergyWidget(NULL); 65 65 this->hud.setWeaponManager(NULL); … … 73 73 if (playable != NULL) 74 74 { 75 printf("Enter new Playable\n");75 PRINTF(4)("Enter new Playable\n"); 76 76 this->playable = playable; 77 77 this->hud.setEnergyWidget(this->playable->getHealthWidget()); … … 82 82 } 83 83 84 printf("no change\n");85 84 return true; 86 85 }
Note: See TracChangeset
for help on using the changeset viewer.