Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8521


Ignore:
Timestamp:
May 20, 2011, 9:46:05 AM (14 years ago)
Author:
youngk
Message:

Reverting changes from last commit concerning debug output.

Location:
code/trunk/src/orxonox/sound
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/sound/BaseSound.cc

    r8514 r8521  
    5151    {
    5252        RegisterRootObject(BaseSound);
    53        
    54         if (int error = alGetError())
    55             COUT(4) << "Sound: Received ALError before alIsSource(): " << SoundManager::getALErrorString(error) << std::endl;
    5653
    5754        // Initialise audioSource_ to a value that is not a source
     
    5956        // HACK!
    6057        this->audioSource_ = 0;
    61         while (alIsSource(++this->audioSource_));
    62        
    63         if (int error = alGetError())
    64             COUT(4) << "Sound: Received ALError after alIsSource(): " << SoundManager::getALErrorString(error) << std::endl;
     58        //while (alIsSource(++this->audioSource_));
    6559    }
    6660
  • code/trunk/src/orxonox/sound/SoundManager.cc

    r8514 r8521  
    7272
    7373        this->bDestructorCalled_ = false;
    74 
    75         // Clear error messages (might be problematic on some systems)
    76         //alGetError();
    77         //alutGetError();
    78        
    79         if (int error = alGetError())
    80             COUT(0) << "SOUND_DEBUG: Received ALError in constructor of SoundManager: " << SoundManager::getALErrorString(error) << std::endl;
    8174         
    8275        // See whether we even want to load
     
    143136        this->setConfigValues();
    144137
    145         // Try to get at least one source
     138        // Try to get exactly one source
    146139        ALuint source;
    147140        alGenSources(1, &source);
Note: See TracChangeset for help on using the changeset viewer.