Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 25, 2009, 1:53:13 PM (15 years ago)
Author:
erwin
Message:

added mainmenu ambient sound

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/sound2/src/orxonox/gamestates/GSMainMenu.cc

    r2957 r3055  
    4040#include "objects/Scene.h"
    4141#include "GraphicsManager.h"
     42#include "sound/SoundMainMenu.h"
    4243
    4344namespace orxonox
     
    7980
    8081        InputManager::getInstance().requestEnterState("mainMenu");
     82
     83        this->ambient_ = new SoundMainMenu();
     84        this->ambient_->play(true);
    8185    }
    8286
    8387    void GSMainMenu::deactivate()
    8488    {
     89        delete this->ambient_;
     90
    8591        InputManager::getInstance().requestLeaveState("mainMenu");
    8692        InputManager::getInstance().requestDestroyState("mainMenu");
Note: See TracChangeset for help on using the changeset viewer.