Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6988 in orxonox.OLD for trunk


Ignore:
Timestamp:
Feb 2, 2006, 8:31:10 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: soundEngine works again

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/story_entities/game_world.cc

    r6981 r6988  
    192192  this->dataTank->unloadData();
    193193
     194  State::setCurrentStoryEntity(NULL);
    194195  if (this->dataXML)
    195196    delete this->dataXML;
  • trunk/src/story_entities/game_world_data.cc

    r6987 r6988  
    162162    glmis->setBackgroundImage("pictures/load_screen.jpg");
    163163    this->glmis->setMaximum(8);
    164 //     this->glmis->draw();
     164    //     this->glmis->draw();
    165165  }
    166166  else
    167167  {
    168168    this->glmis->loadParams(element);
    169 //     this->glmis->draw();
     169    //     this->glmis->draw();
    170170  }
    171171  this->glmis->draw();
     
    257257    delete this->localPlayer;
    258258
    259    nodeList = ClassList::getList(CL_GRAPHICS_EFFECT);
    260    if (nodeList != NULL)
    261      while (!nodeList->empty())
    262        delete nodeList->front();
    263 //
    264 //   nodeList = ClassList::getList(CL_ELEMENT_2D);
    265 //   if (nodeList != NULL)
    266 //     while (!nodeList->empty())
    267 //       delete nodeList->front();
     259  nodeList = ClassList::getList(CL_GRAPHICS_EFFECT);
     260  if (nodeList != NULL)
     261    while (!nodeList->empty())
     262      delete nodeList->front();
     263  //
     264  //   nodeList = ClassList::getList(CL_ELEMENT_2D);
     265  //   if (nodeList != NULL)
     266  //     while (!nodeList->empty())
     267  //       delete nodeList->front();
    268268
    269269
     
    302302  LoadParam(root, "Music", this, GameWorldData, setSoundTrack);
    303303
    304 //  LoadParamXML(root, "ParticleEngine", ParticleEngine::getInstance(), ParticleEngine, loadParams);
     304  //  LoadParamXML(root, "ParticleEngine", ParticleEngine::getInstance(), ParticleEngine, loadParams);
    305305  //LoadParamXML(root, "PhysicsEngine", PhysicsEngine::getInstance(), PhysicsEngine, loadParams);
    306306
     
    343343  {
    344344    PRINTF(3)("Setting Sound Track to %s\n", name);
    345     this->music = (OggPlayer*)ResourceManager::getInstance()->load(name, OGG, RP_LEVEL);
    346   }
    347 }
    348 
    349 
     345    char* oggFile = ResourceManager::getFullName(name); /// FIXME
     346    this->music = new OggPlayer(oggFile);
     347    delete[] oggFile;
     348
     349    //(OggPlayer*)ResourceManager::getInstance()->load(name, OGG, RP_LEVEL);
     350    //assert(this->music->isA(CL_SOUND_OGG_PLAYER));
     351  }
     352}
     353
     354
  • trunk/src/world_entities/environments/model_entity.h

    r6970 r6988  
    2020  virtual ~ModelEntity();
    2121
    22 
    23   private:
    24 
    2522};
    2623
Note: See TracChangeset for help on using the changeset viewer.