Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 11, 2009, 2:30:54 PM (16 years ago)
Author:
erwin
Message:

moved files, modified to support multiple contexts

Location:
code/branches/sound/src/orxonox/objects
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/sound/src/orxonox/objects/Level.cc

    r2955 r2966  
    5757        if (this->xmlfilename_.length() >= Core::getMediaPathString().length())
    5858            this->xmlfilename_ = this->xmlfilename_.substr(Core::getMediaPathString().length());
     59           
     60        this->sndmgr_ = new SoundManager();
    5961    }
    6062
     
    6870            if (this->xmlfile_)
    6971                Loader::unload(this->xmlfile_);
     72           
     73            if(this->ambientsound_ != NULL)
     74                delete this->ambientsound_;
     75           
     76            delete this->sndmgr_;
    7077        }
    7178    }
     
    158165            {
    159166                this->ambientsound_ = new SoundBase();
    160                 this->sndmgr_.addSound(this->ambientsound_);
     167                this->sndmgr_->addSound(this->ambientsound_);
    161168            }
    162169
  • code/branches/sound/src/orxonox/objects/Level.h

    r2950 r2966  
    7373            XMLFile*               xmlfile_;
    7474            std::list<BaseObject*> objects_;
    75             SoundManager           sndmgr_;
     75            SoundManager*          sndmgr_;
    7676            SoundBase*             ambientsound_;
    7777    };
Note: See TracChangeset for help on using the changeset viewer.