Changeset 8514 for code/trunk/src
- Timestamp:
- May 19, 2011, 5:32:25 PM (14 years ago)
- Location:
- code/trunk/src/orxonox/sound
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/sound/BaseSound.cc
r7858 r8514 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; 53 56 54 57 // Initialise audioSource_ to a value that is not a source 55 58 // 0 is unfortunately not guaranteed to be no source ID. 56 this->audioSource_ = 123456789; 59 // HACK! 60 this->audioSource_ = 0; 57 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 65 } 59 66 … … 165 172 if (alIsSource(this->audioSource_)) 166 173 { 167 float volume = this->volume_ * this->getRealVolume(); 174 float volume = this->volume_ * this->getRealVolume(); 168 175 alSourcef(this->audioSource_, AL_GAIN, volume); 169 176 if (int error = alGetError()) -
code/trunk/src/orxonox/sound/SoundManager.cc
r8351 r8514 74 74 75 75 // Clear error messages (might be problematic on some systems) 76 alGetError(); 77 alutGetError(); 78 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 79 82 // See whether we even want to load 80 83 bool bDisableSound_ = false;
Note: See TracChangeset
for help on using the changeset viewer.