Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6830 in orxonox.OLD


Ignore:
Timestamp:
Jan 29, 2006, 2:43:25 PM (18 years ago)
Author:
bensch
Message:

trunk: the SoundEngine loads the Sources

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/sound/sound_engine.cc

    r6829 r6830  
    106106  const char* effectsVolume = iniParser->getVar(CONFIG_NAME_EFFECTS_VOLUME, CONFIG_SECTION_AUDIO, "80");
    107107  this->effectsVolume = atof(effectsVolume)/100.0;
     108
     109  this->allocateSources(this->maxSourceCount);
    108110}
    109111
  • trunk/src/orxonox.cc

    r6828 r6830  
    249249  // SDL_InitSubSystem(SDL_INIT_AUDIO);
    250250  SoundEngine::getInstance()->initAudio();
    251   SoundEngine::getInstance()->allocateSources(32);
    252251
    253252  SoundEngine::getInstance()->loadSettings(this->iniParser);
Note: See TracChangeset for help on using the changeset viewer.