Changeset 7307 in orxonox.OLD for trunk/src/lib/sound
- Timestamp:
- Apr 16, 2006, 10:37:37 PM (19 years ago)
- Location:
- trunk/src/lib/sound
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/sound/ogg_player.cc
r7306 r7307 146 146 147 147 this->state &= ~(OggPlayer::Stopped | OggPlayer::Paused); 148 149 if (!this->playback()) 150 return false; 151 148 152 if (this->musicThread == NULL) 149 153 return ((this->musicThread = SDL_CreateThread(OggPlayer::createAudioThread, (void*)this)) != NULL); … … 231 235 OggPlayer* ogg = (OggPlayer*)oggPlayer; 232 236 PRINTF(4)("STARTIG AUDIO THREAD\n"); 233 234 if (!ogg->playback())235 return -1;236 237 237 238 while (ogg->state & OggPlayer::Playing) … … 284 285 { 285 286 assert (!(this->state & Playing)); 287 this->printState(); 286 288 SDL_WaitThread(this->musicThread, NULL); 287 289 this->musicThread = NULL; -
trunk/src/lib/sound/ogg_player.h
r7306 r7307 76 76 void empty(); 77 77 78 public:79 80 78 private: 81 79 FILE* oggFile; //!< general file-handler, to open the sound-file
Note: See TracChangeset
for help on using the changeset viewer.