Changeset 4208 in orxonox.OLD for orxonox/branches/openAL
- Timestamp:
- May 17, 2005, 3:36:42 AM (20 years ago)
- Location:
- orxonox/branches/openAL/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/openAL/src/lib/sound/sound_engine.cc
r4207 r4208 95 95 alSourcef (this->sourceID, AL_PITCH, 1.0 ); 96 96 alSourcef (this->sourceID, AL_GAIN, 1.0 ); 97 alSourcei (sourceID, AL_LOOPING, true);97 alSourcei (sourceID, AL_LOOPING, AL_FALSE ); 98 98 } 99 99 -
orxonox/branches/openAL/src/story_entities/world.cc
r4205 r4208 490 490 491 491 SoundEngine::getInstance()->setListener(tn); 492 SoundSource* tSound = SoundEngine::getInstance()->createSource("sound/explo.wav", this->localPlayer);493 tSound->setRolloffFactor(0);494 tSound->play();495 496 492 497 493 ParticleSystem* system = new ParticleSystem(1000, PARTICLE_SPRITE); -
orxonox/branches/openAL/src/world_entities/test_gun.cc
r4194 r4208 31 31 #include "list.h" 32 32 #include "animation3d.h" 33 #include "sound_engine.h" 33 34 34 35 using namespace std; … … 86 87 this->animation3->addKeyFrame(Vector(-2.6, 0.1, -2.0), Quaternion(), 0.1, ANIM_LINEAR, ANIM_CONSTANT); 87 88 } 88 89 90 this->fireSound = (SoundBuffer*)ResourceManager::getInstance()->load("sound/explo.wav", WAV); 91 this->weaponSource = new SoundSource(this->fireSound, this); 89 92 } 90 93 … … 137 140 return; 138 141 } 142 143 weaponSource->play(); 139 144 140 145 Projectile* pj = new TestBullet(this); -
orxonox/branches/openAL/src/world_entities/weapon.h
r3888 r4208 175 175 int leftRight; // this will become an enum 176 176 177 SoundBuffer* fireSound; 178 SoundSource* weaponSource; 179 180 177 181 private: 178 182 bool enabled; //<! states if the weapon is enabled or not -
orxonox/branches/openAL/src/world_entities/world_entity.h
r4194 r4208 11 11 #include "resource_manager.h" 12 12 13 14 13 //class CollisionCluster; 15 14 class CharacterAttributes; 16 15 class Model; 17 16 class SoundEngine; 17 class SoundBuffer; 18 class SoundSource; 18 19 19 20 //! Basic class from which all interactive stuff in the world is derived from
Note: See TracChangeset
for help on using the changeset viewer.