Changeset 6504 for code/branches/sound4/src/orxonox/sound/BaseSound.cc
- Timestamp:
- Mar 11, 2010, 3:12:37 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/sound4/src/orxonox/sound/BaseSound.cc
r6435 r6504 141 141 alSource3f(this->audioSource_, AL_DIRECTION, 0, 0, 0); 142 142 if (ALint error = alGetError()) 143 COUT(2) << "Sound Warning: Setting source parameters to 0 failed: " << getALErrorString(error) << std::endl;143 COUT(2) << "Sound: Warning: Setting source parameters to 0 failed: " << getALErrorString(error) << std::endl; 144 144 assert(this->soundBuffer_ != NULL); 145 145 alSourcei(this->audioSource_, AL_BUFFER, this->soundBuffer_->getBuffer()); 146 146 if (ALuint error = alGetError()) 147 COUT(1) << "Sound Error: Could not set buffer \"" << this->source_ << "\": " << getALErrorString(error) << std::endl;147 COUT(1) << "Sound: Error: Could not set buffer \"" << this->source_ << "\": " << getALErrorString(error) << std::endl; 148 148 } 149 149 … … 152 152 this->volume_ = clamp(vol, 0.0f, 1.0f); 153 153 if (this->volume_ != vol) 154 COUT(2) << "Sound warning: volume out of range, clamping value." << std::endl;154 COUT(2) << "Sound: Warning: volume out of range, clamping value." << std::endl; 155 155 this->updateVolume(); 156 156 } … … 178 178 if (pitch > 2 || pitch < 0.5) 179 179 { 180 COUT(2) << "Sound warning: pitch out of range, cropping value." << std::endl;180 COUT(2) << "Sound: Warning: pitch out of range, cropping value." << std::endl; 181 181 pitch = pitch > 2 ? 2 : pitch; 182 182 pitch = pitch < 0.5 ? 0.5 : pitch; … … 232 232 if (ALuint error = alGetError()) 233 233 { 234 COUT(1) << "Sound Error: Could not set buffer \"" << source << "\": " << getALErrorString(error) << std::endl;234 COUT(1) << "Sound: Error: Could not set buffer \"" << source << "\": " << getALErrorString(error) << std::endl; 235 235 return; 236 236 }
Note: See TracChangeset
for help on using the changeset viewer.