Changeset 6726 for code/branches/sound5/src/orxonox/sound/BaseSound.cc
- Timestamp:
- Apr 14, 2010, 2:19:32 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/sound5/src/orxonox/sound/BaseSound.cc
r6506 r6726 142 142 if (ALint error = alGetError()) 143 143 COUT(2) << "Sound: Warning: Setting source parameters to 0 failed: " << getALErrorString(error) << std::endl; 144 assert(this->soundBuffer_ != NULL); 145 alSourcei(this->audioSource_, AL_BUFFER, this->soundBuffer_->getBuffer()); 144 if(this->soundBuffer_ != NULL) { 145 alSourcei(this->audioSource_, AL_BUFFER, this->soundBuffer_->getBuffer()); 146 } 146 147 if (ALuint error = alGetError()) 147 148 COUT(1) << "Sound: Error: Could not set buffer \"" << this->source_ << "\": " << getALErrorString(error) << std::endl;
Note: See TracChangeset
for help on using the changeset viewer.