Changeset 2966 for code/branches/sound/src/orxonox/objects
- Timestamp:
- May 11, 2009, 2:30:54 PM (16 years ago)
- Location:
- code/branches/sound/src/orxonox/objects
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/sound/src/orxonox/objects/Level.cc
r2955 r2966 57 57 if (this->xmlfilename_.length() >= Core::getMediaPathString().length()) 58 58 this->xmlfilename_ = this->xmlfilename_.substr(Core::getMediaPathString().length()); 59 60 this->sndmgr_ = new SoundManager(); 59 61 } 60 62 … … 68 70 if (this->xmlfile_) 69 71 Loader::unload(this->xmlfile_); 72 73 if(this->ambientsound_ != NULL) 74 delete this->ambientsound_; 75 76 delete this->sndmgr_; 70 77 } 71 78 } … … 158 165 { 159 166 this->ambientsound_ = new SoundBase(); 160 this->sndmgr_ .addSound(this->ambientsound_);167 this->sndmgr_->addSound(this->ambientsound_); 161 168 } 162 169 -
code/branches/sound/src/orxonox/objects/Level.h
r2950 r2966 73 73 XMLFile* xmlfile_; 74 74 std::list<BaseObject*> objects_; 75 SoundManager 75 SoundManager* sndmgr_; 76 76 SoundBase* ambientsound_; 77 77 };
Note: See TracChangeset
for help on using the changeset viewer.