Changeset 6234 for code/branches/presentation2/src/orxonox/sound
- Timestamp:
- Dec 3, 2009, 8:22:49 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/orxonox/sound/BaseSound.cc
r6232 r6234 197 197 this->setLooping(getLooping()); 198 198 if (this->isPlaying() || this->isPaused()) 199 BaseSound::play(); 199 { 200 alSourcePlay(this->audioSource_); 201 if (int error = alGetError()) 202 COUT(2) << "Sound: Error playing sound: " << error << std::endl; 203 } 200 204 if (this->isPaused()) 201 BaseSound::pause();205 alSourcePause(this->audioSource_); 202 206 } 203 207 }
Note: See TracChangeset
for help on using the changeset viewer.