Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

added mainmenu ambient sound

Location:
code/branches/sound2/src/orxonox/gamestates
Files:
2 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");
  • code/branches/sound2/src/orxonox/gamestates/GSMainMenu.h

    r2896 r3055  
    5555        // console commands
    5656        ConsoleCommand* ccStartGame_;
     57
     58        // ambient sound for the main menu
     59        SoundMainMenu* ambient_;
    5760    };
    5861}
Note: See TracChangeset for help on using the changeset viewer.