Changeset 7295 in orxonox.OLD for trunk/src/lib/sound
- Timestamp:
- Apr 14, 2006, 12:37:06 PM (19 years ago)
- Location:
- trunk/src/lib/sound
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/sound/ogg_player.cc
r7294 r7295 129 129 void OggPlayer::release() 130 130 { 131 this->printState(); 131 132 if (this->state & SourceAllocated) 132 133 { … … 314 315 } 315 316 317 318 void OggPlayer::printState() 319 { 320 PRINTF(0)("OggPlayer is in the following States: "); 321 if (this->state & FileOpened) 322 PRINT(0)("FileOpened "); 323 if (this->state & SourceAllocated) 324 PRINT(0)("SourceAllocated "); 325 if (this->state & BuffersAllocated) 326 PRINT(0)("BuffersAllocated "); 327 if (this->state & Stopped) 328 PRINT(0)("Stopped "); 329 if (this->state & Playing) 330 PRINT(0)("Playing "); 331 if (this->state & Paused) 332 PRINT(0)("Paused "); 333 if (this->state & Error) 334 PRINT(0)("Error "); 335 PRINT(0)("\n"); 336 } 316 337 317 338 /** … … 338 359 } 339 360 } 361 -
trunk/src/lib/sound/ogg_player.h
r7293 r7295 36 36 bool update(); 37 37 38 void printState(); 39 38 40 protected: 39 41 bool stream(ALuint buffer);
Note: See TracChangeset
for help on using the changeset viewer.