- Timestamp:
- Dec 11, 2009, 2:05:00 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/orxonox/sound/BaseSound.cc
r6307 r6320 221 221 alSourcePause(this->audioSource_); 222 222 } 223 224 void BaseSound::stateChanged() 225 { 226 CCOUT(0) << "changed state to " << this->state_ << endl; 227 switch( this->state_ ) 228 { 229 case Playing: 230 this->play(); 231 break; 232 case Paused: 233 this->pause(); 234 break; 235 case Stopped: 236 default: 237 this->stop(); 238 break; 239 } 240 } 223 241 }
Note: See TracChangeset
for help on using the changeset viewer.