Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 6, 2009, 9:18:40 AM (15 years ago)
Author:
rgrieder
Message:

Removed hard coded sound in Level, Engine and PongBall and replaced SoundMainMenu with a simple SoundBase.

File:
1 edited

Legend:

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

    r5878 r5892  
    3939#include "core/GUIManager.h"
    4040#include "Scene.h"
    41 #include "sound/SoundMainMenu.h"
     41#include "sound/SoundBase.h"
    4242
    4343namespace orxonox
     
    6262        {
    6363            // Load sound
    64             this->ambient_ = new SoundMainMenu();
     64            this->ambient_ = new SoundBase(0);
     65            this->ambient_->loadFile("ambient/mainmenu.wav");
    6566        }
    6667    }
     
    6970    {
    7071        if (GameMode::playsSound())
    71         {
    72             this->ambient_->destroy();
    73         }
     72            delete this->ambient_;
    7473
    7574        InputManager::getInstance().destroyState("mainMenu");
Note: See TracChangeset for help on using the changeset viewer.