Changeset 4204 in orxonox.OLD for orxonox/branches/openAL/src/story_entities
- Timestamp:
- May 17, 2005, 2:05:57 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/openAL/src/story_entities/world.cc
r4200 r4204 491 491 SoundEngine::getInstance()->setListener(tn); 492 492 SoundBuffer* tBuffer = new SoundBuffer(ResourceManager::getFullName("sound/explo.wav")); 493 SoundSource* tSound = new SoundSource(tBuffer, this->localPlayer);494 tSound->setRolloffFactor(0 .1);493 SoundSource* tSound = SoundEngine::getInstance()->createSource("sound/explo.wav", this->localPlayer); 494 tSound->setRolloffFactor(0); 495 495 tSound->play(); 496 496
Note: See TracChangeset
for help on using the changeset viewer.