Changeset 8521
- Timestamp:
- May 20, 2011, 9:46:05 AM (14 years ago)
- Location:
- code/trunk/src/orxonox/sound
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/sound/BaseSound.cc
r8514 r8521 51 51 { 52 52 RegisterRootObject(BaseSound); 53 54 if (int error = alGetError())55 COUT(4) << "Sound: Received ALError before alIsSource(): " << SoundManager::getALErrorString(error) << std::endl;56 53 57 54 // Initialise audioSource_ to a value that is not a source … … 59 56 // HACK! 60 57 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_)); 65 59 } 66 60 -
code/trunk/src/orxonox/sound/SoundManager.cc
r8514 r8521 72 72 73 73 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;81 74 82 75 // See whether we even want to load … … 143 136 this->setConfigValues(); 144 137 145 // Try to get at leastone source138 // Try to get exactly one source 146 139 ALuint source; 147 140 alGenSources(1, &source);
Note: See TracChangeset
for help on using the changeset viewer.