Changeset 3898 in orxonox.OLD for orxonox/branches/sound_engine
- Timestamp:
- Apr 19, 2005, 8:31:01 PM (20 years ago)
- Location:
- orxonox/branches/sound_engine/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/sound_engine/src/story_entities/world.cc
r3870 r3898 35 35 #include "light.h" 36 36 #include "text_engine.h" 37 #include "sound_engine.h" 37 38 38 39 #include "track_manager.h" … … 147 148 cn->unbind(this->localPlayer); 148 149 cn->reset(); 150 151 ResourceManager::getInstance()->unload(this->music); 149 152 150 153 ResourceManager::getInstance()->debug(); … … 271 274 trackManager->finalize(); 272 275 273 276 this->music = (Sound*)ResourceManager::getInstance()->load("sound/orx.mp3", RESOURCE_SOUND_MUSIC, RP_LEVEL); 277 this->music->play(); 274 278 /*monitor progress*/ 275 279 this->glmis->step(); -
orxonox/branches/sound_engine/src/story_entities/world.h
r3851 r3898 24 24 class Terrain; 25 25 class GarbageCollector; 26 class Text;26 class Sound; 27 27 28 28 //! The game world Interface … … 108 108 LightManager* lightMan; //!< The Lights of the Level 109 109 Terrain* terrain; //!< The Terrain of the World. 110 Sound* music; //!< The Music to Play in the Level 110 111 111 112 GLuint objectList; //!< temporary: \todo this will be ereased soon -
orxonox/branches/sound_engine/src/world_entities/test_gun.cc
r3881 r3898 32 32 #include "animation3d.h" 33 33 34 #include "resource_manager.h" 35 #include "sound_engine.h" 36 34 37 using namespace std; 35 38 … … 72 75 this->animation->addKeyFrame(Vector(-2.6, 0.1, -2.5), Quaternion(), 0.1, ANIM_LINEAR); 73 76 } 77 78 this->shootSound = (Sound*)ResourceManager::getInstance()->load("sound/explo.wav", RESOURCE_SOUND_EFFECT, RP_LEVEL); 74 79 /* 75 80 if( this->leftRight == 0) … … 127 132 void TestGun::fire() 128 133 { 134 if (likely(this->shootSound != NULL)) 135 this->shootSound->play(); 136 129 137 if( !this->hasWeaponIdleTimeElapsed()) 130 138 { … … 144 152 145 153 this->animation->replay(); 154 146 155 } 147 156 -
orxonox/branches/sound_engine/src/world_entities/weapon.cc
r3881 r3898 207 207 WorldInterface* wi = WorldInterface::getInstance(); 208 208 this->worldEntities = wi->getEntityList(); 209 210 this->shootSound = NULL; 209 211 } 210 212 -
orxonox/branches/sound_engine/src/world_entities/weapon.h
r3881 r3898 38 38 class Projectile; 39 39 class Weapon; 40 class Sound; 40 41 41 42 typedef enum { … … 158 159 float idleTime; 159 160 float slowDownFactor; 161 Sound* shootSound; 160 162 161 163 private:
Note: See TracChangeset
for help on using the changeset viewer.