Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3892 in orxonox.OLD for orxonox/branches/sound_engine/src/orxonox.cc


Ignore:
Timestamp:
Apr 19, 2005, 2:54:20 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: playing music works :)
now it really is bedTime

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/sound_engine/src/orxonox.cc

    r3889 r3892  
    6060  if( resources != NULL) delete resources;
    6161  delete GraphicsEngine::getInstance(); // delets the Graphics Engine
    62   //  delete SoundEngine::getInstance();    // deletes the Sound Engine
     62  delete SoundEngine::getInstance();    // deletes the Sound Engine
    6363  delete ResourceManager::getInstance(); // deletes the Resource Manager
    6464  delete TextEngine::getInstance();
     
    102102  // initialize everything
    103103  if( initVideo() == -1) return -1;
     104  // init sound
    104105  if( initSound() == -1) return -1;
    105106  printf("> Initializing input\n");
     
    112113  //if( init_world () == -1) return -1; PB: world will be initialized when started
    113114 
     115  Sound* test = (Sound*)ResourceManager::getInstance()->load("sound/16.mp3", RESOURCE_SOUND_MUSIC, RP_LEVEL);
     116  test->play();
     117
    114118  return 0;
    115119}
Note: See TracChangeset for help on using the changeset viewer.