Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4961 in orxonox.OLD for orxonox/trunk/src/story_entities


Ignore:
Timestamp:
Jul 28, 2005, 1:19:50 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: music now plays back, as one would expect, and the ReosurceManager handles ogg's.
Also the naming has changed a bit, and doxygen tags are complete in ogg_player.h/cc

Location:
orxonox/trunk/src/story_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/story_entities/world.cc

    r4959 r4961  
    6666
    6767#include "sound_engine.h"
     68#include "ogg_player.h"
    6869
    6970#include "class_list.h"
     
    206207
    207208  LoadClassDescription::printAll();
     209
     210
     211  ResourceManager::getInstance()->unload(this->music);
    208212  ResourceManager::getInstance()->unloadAllByPriority(RP_LEVEL);
    209213}
     
    226230  //strcpy(this->worldName, name);
    227231  this->debugWorldNr = worldID;
     232
     233  this->music = NULL;
    228234}
    229235
     
    517523
    518524  ClassList::debug();
     525
     526  this->music = (OggPlayer*)ResourceManager::getInstance()->load("sound/00-luke_grey_-_hypermode.ogg", OGG, RP_LEVEL);
     527  music->playback();
    519528}
    520529
     
    954963
    955964  SoundEngine::getInstance()->update();
     965  music->update();
    956966}
    957967
  • orxonox/trunk/src/story_entities/world.h

    r4836 r4961  
    2424class PilotNode;
    2525
     26class OggPlayer;
    2627//! The game world Interface
    2728/**
     
    112113
    113114
     115  OggPlayer* music;
    114116  // IMPORTANT WORLD-ENTITIES
    115117  PNode* nullParent;                  //!< The zero-point, that everything has as its parent.
Note: See TracChangeset for help on using the changeset viewer.