Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7295 in orxonox.OLD for trunk/src/lib/sound


Ignore:
Timestamp:
Apr 14, 2006, 12:37:06 PM (19 years ago)
Author:
bensch
Message:

cool new debug function

Location:
trunk/src/lib/sound
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/sound/ogg_player.cc

    r7294 r7295  
    129129void OggPlayer::release()
    130130{
     131  this->printState();
    131132  if (this->state & SourceAllocated)
    132133  {
     
    314315}
    315316
     317
     318void 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}
    316337
    317338/**
     
    338359  }
    339360}
     361
  • trunk/src/lib/sound/ogg_player.h

    r7293 r7295  
    3636  bool update();
    3737
     38  void printState();
     39
    3840protected:
    3941  bool stream(ALuint buffer);
Note: See TracChangeset for help on using the changeset viewer.