Changeset 5896 for code/branches/core5/src/orxonox/gamestates
- Timestamp:
- Oct 6, 2009, 11:12:01 PM (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
r5892 r5896 39 39 #include "core/GUIManager.h" 40 40 #include "Scene.h" 41 #include "sound/ SoundBase.h"41 #include "sound/AmbientSound.h" 42 42 43 43 namespace orxonox … … 62 62 { 63 63 // Load sound 64 this->ambient_ = new SoundBase(0);65 this->ambient_-> loadFile("ambient/mainmenu.wav");64 this->ambient_ = new AmbientSound(0); 65 this->ambient_->setSoundFile("ambient/mainmenu.wav"); 66 66 } 67 67 } … … 96 96 if (GameMode::playsSound()) 97 97 { 98 this->ambient_->play(true); 98 this->ambient_->setLoop(true); 99 this->ambient_->play(); 99 100 } 100 101 } -
code/branches/core5/src/orxonox/gamestates/GSMainMenu.h
r5892 r5896 59 59 60 60 // ambient sound for the main menu 61 SoundBase*ambient_;61 AmbientSound* ambient_; 62 62 }; 63 63 }
Note: See TracChangeset
for help on using the changeset viewer.