Changeset 2982
- Timestamp:
- May 18, 2009, 3:38:22 PM (16 years ago)
- Location:
- code/branches/sound/src/orxonox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/sound/src/orxonox/objects/items/Engine.cc
r2980 r2982 78 78 delete this->boostBlur_; 79 79 } 80 81 if(this->sound_ != NULL) 82 delete this->sound_; 80 83 } 81 84 … … 222 225 { 223 226 this->ship_ = ship; 224 this->sound_->attachToEntity(ship); 227 228 if(this->sound_ != NULL) 229 this->sound_->attachToEntity(ship); 225 230 226 231 if (ship) -
code/branches/sound/src/orxonox/sound/SoundManager.cc
r2980 r2982 64 64 else 65 65 { 66 COUT(3) << "OpenAL: Sound device opened" ;66 COUT(3) << "OpenAL: Sound device opened" << std::endl; 67 67 this->context_ = alcCreateContext(SoundManager::device_s, NULL); 68 68 if(this->context_ == NULL) 69 69 { 70 COUT(2) << "OpenAL: Could not create sound context" ;70 COUT(2) << "OpenAL: Could not create sound context" << std::endl; 71 71 } 72 72 else 73 73 { 74 COUT(3) << "OpenAL: Context " << this->context_ << "loaded";75 alcMakeContextCurrent(this->context_);74 if(alcMakeContextCurrent(this->context_) == AL_TRUE) 75 COUT(3) << "OpenAL: Context " << this->context_ << "loaded" << std::endl; 76 76 } 77 77 }
Note: See TracChangeset
for help on using the changeset viewer.