Changeset 5892 for code/branches/core5/src/orxonox/gamestates
- Timestamp:
- Oct 6, 2009, 9:18:40 AM (15 years ago)
- Location:
- code/branches/core5/src/orxonox/gamestates
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core5/src/orxonox/gamestates/GSMainMenu.cc
r5878 r5892 39 39 #include "core/GUIManager.h" 40 40 #include "Scene.h" 41 #include "sound/Sound MainMenu.h"41 #include "sound/SoundBase.h" 42 42 43 43 namespace orxonox … … 62 62 { 63 63 // Load sound 64 this->ambient_ = new SoundMainMenu(); 64 this->ambient_ = new SoundBase(0); 65 this->ambient_->loadFile("ambient/mainmenu.wav"); 65 66 } 66 67 } … … 69 70 { 70 71 if (GameMode::playsSound()) 71 { 72 this->ambient_->destroy(); 73 } 72 delete this->ambient_; 74 73 75 74 InputManager::getInstance().destroyState("mainMenu"); -
code/branches/core5/src/orxonox/gamestates/GSMainMenu.h
r5876 r5892 59 59 60 60 // ambient sound for the main menu 61 Sound MainMenu*ambient_;61 SoundBase* ambient_; 62 62 }; 63 63 }
Note: See TracChangeset
for help on using the changeset viewer.