Changeset 6234 for code/branches
- Timestamp:
- Dec 3, 2009, 8:22:49 PM (15 years ago)
- Location:
- code/branches/presentation2/src/orxonox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/orxonox/gamestates/GSMainMenu.cc
r6226 r6234 101 101 InputManager::getInstance().enterState("mainMenu"); 102 102 103 this->setConfigValues(); 104 103 105 if (GameMode::playsSound()) 104 106 { 105 107 this->ambient_->setLooping(true); 106 //this->ambient_->play(); // works without source108 this->ambient_->play(); // works without source 107 109 } 108 109 this->setConfigValues();110 110 } 111 111 … … 141 141 { 142 142 this->ambient_->setAmbientSource(soundPathMain_); 143 this->ambient_->play();144 143 } 145 144 } -
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.