Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
May 19, 2006, 3:07:09 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: better debug names
As DEBUG and ERROR are already given to windows.h and other files:
DEBUG is renamed to DEBUG_LEVEL
and all
NO, ERR, WARN, INFO, DEBUG, vDEBUG
are renamed to
ORX_NONE, ORX_ERR, ORX_WARN, ORX_INFO, ORX_DEBUG, ORX_vDEBUG

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

Legend:

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

    r7460 r7729  
    290290
    291291    alSourceQueueBuffers(this->source, 2, this->buffers);
    292     if (DEBUG >= 3)
     292    if (DEBUG_LEVEL >= 3)
    293293      SoundEngine::checkError("OggPlayer::playback()::alSourceQueueBuffers", __LINE__);
    294294
    295295    alSourcePlay(this->source);
    296     if (DEBUG >= 3)
     296    if (DEBUG_LEVEL >= 3)
    297297      SoundEngine::checkError("OggPlayer::playback()::alSourcePlay", __LINE__);
    298298    SDL_mutexV(this->musicMutex);
     
    329329
    330330    alGetSourcei(source, AL_BUFFERS_PROCESSED, &processed);
    331     if (DEBUG >= 3)
     331    if (DEBUG_LEVEL >= 3)
    332332      SoundEngine::checkError("OggPlayer::update()::alGetSourceI", __LINE__);
    333333
     
    337337
    338338      alSourceUnqueueBuffers(source, 1, &buffer);
    339       if (DEBUG >= 3)
     339      if (DEBUG_LEVEL >= 3)
    340340        SoundEngine::checkError("OggPlayer::update()::unqueue", __LINE__);
    341341
     
    343343
    344344      alSourceQueueBuffers(source, 1, &buffer);
    345       if (DEBUG >= 3)
     345      if (DEBUG_LEVEL >= 3)
    346346        SoundEngine::checkError("OggPlayer::update()::queue", __LINE__);
    347347    }
     
    380380
    381381    alBufferData(buffer, format, pcm, size, vorbisInfo->rate);
    382     if (DEBUG >= 3)
     382    if (DEBUG_LEVEL >= 3)
    383383      SoundEngine::checkError("OggPlayer::stream()::BUFFER", __LINE__);
    384384
     
    448448
    449449  /////////////////////
    450   // DEBUG FUNCTIONS //
     450  // DEBUG_LEVEL FUNCTIONS //
    451451  /////////////////////
    452452  /**
  • trunk/src/lib/sound/sound_engine.cc

    r7460 r7729  
    223223          int play = 0x000;
    224224          alGetSourcei(source->getID(), AL_SOURCE_STATE, &play);
    225           if (DEBUG > 2)
     225          if (DEBUG_LEVEL > 2)
    226226            SoundEngine::checkError("SoundEngine::update() Play", __LINE__);
    227227          if(play == AL_PLAYING)
     
    233233                         source->getNode()->getAbsCoor().y,
    234234                         source->getNode()->getAbsCoor().z);
    235               if (DEBUG > 2)
     235              if (DEBUG_LEVEL > 2)
    236236                SoundEngine::checkError("SoundEngine::update() Set Source Position", __LINE__);
    237237              alSource3f(source->getID(), AL_VELOCITY,
     
    239239                         source->getNode()->getVelocity().y,
    240240                         source->getNode()->getVelocity().z);
    241               if (DEBUG > 2)
     241              if (DEBUG_LEVEL > 2)
    242242                SoundEngine::checkError("SoundEngine::update() Set Source Velocity", __LINE__);
    243243            }
  • trunk/src/lib/sound/sound_source.cc

    r7460 r7729  
    124124      alSourcePlay(this->sourceID);
    125125
    126       if (DEBUG >= 3)
     126      if (DEBUG_LEVEL >= 3)
    127127        SoundEngine::checkError("Play Source", __LINE__);
    128128      this->bPlay = true;
     
    151151    this->bPlay = true;
    152152
    153     if (DEBUG >= 3)
     153    if (DEBUG_LEVEL >= 3)
    154154      SoundEngine::checkError("Play Source", __LINE__);
    155155  }
     
    165165    {
    166166      alSourceStop(this->sourceID);
    167       if (DEBUG >= 3)
     167      if (DEBUG_LEVEL >= 3)
    168168        SoundEngine::checkError("StopSource", __LINE__);
    169169      alSourcei(this->sourceID, AL_BUFFER, 0);
     
    181181  {
    182182    alSourcePause(this->sourceID);
    183     if (DEBUG >= 3)
     183    if (DEBUG_LEVEL >= 3)
    184184      SoundEngine::checkError("Pause Source", __LINE__);
    185185  }
     
    193193    alSourceRewind(this->sourceID);
    194194
    195     if (DEBUG >= 3)
     195    if (DEBUG_LEVEL >= 3)
    196196      SoundEngine::checkError("Rewind Source", __LINE__);
    197197  }
     
    208208    alSourcef(this->sourceID, AL_ROLLOFF_FACTOR, rolloffFactor);
    209209
    210     if (DEBUG >= 3)
     210    if (DEBUG_LEVEL >= 3)
    211211      SoundEngine::checkError("Set Source Rolloff-factor", __LINE__);
    212212  }
Note: See TracChangeset for help on using the changeset viewer.