Changeset 6327 for code/branches/presentation2/src/orxonox/sound
- Timestamp:
- Dec 12, 2009, 5:45:57 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/orxonox/sound/BaseSound.cc
r6322 r6327 200 200 void BaseSound::setSource(const std::string& source) 201 201 { 202 if (!GameMode::playsSound() || source == this->source_)202 if (!GameMode::playsSound()) 203 203 { 204 204 this->source_ = source; … … 208 208 if (this->soundBuffer_ != NULL) 209 209 { 210 if (this->soundBuffer_->getFilename() == source) 211 { 212 assert(this->source_ == source_); 213 return; 214 } 210 215 // Stopping is imperative here! 211 216 if (alIsSource(this->audioSource_)) … … 248 253 void BaseSound::stateChanged() 249 254 { 250 CCOUT(0) << "changed state to " << this->state_ << endl; 251 switch( this->state_ ) 255 switch (this->state_) 252 256 { 253 257 case Playing:
Note: See TracChangeset
for help on using the changeset viewer.