Changeset 7318 in orxonox.OLD for trunk/src/lib/sound/sound_source.cc
- Timestamp:
- Apr 17, 2006, 2:55:51 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/sound/sound_source.cc
r7317 r7318 117 117 void SoundSource::play() 118 118 { 119 if (this->retrieveSource()) 120 { 121 alSourcePlay(this->sourceID); 119 if (this->buffer && this->retrieveSource()) 120 { 121 if (this->bPlay) 122 alSourceStop(this->sourceID); 123 alSourcei (this->sourceID, AL_BUFFER, this->buffer->getID()); 124 alSourcePlay(this->sourceID); 125 122 126 if (DEBUG >= 3) 123 127 SoundEngine::checkError("Play Source", __LINE__);
Note: See TracChangeset
for help on using the changeset viewer.