Changeset 4198 in orxonox.OLD for orxonox/branches/openAL
- Timestamp:
- May 16, 2005, 4:41:58 PM (20 years ago)
- Location:
- orxonox/branches/openAL/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/openAL/src/lib/sound/sound_engine.cc
r4197 r4198 48 48 { 49 49 SoundEngine::getInstance()->removeBuffer(this); 50 alDeleteBuffers(1, &this->bufferID); 50 51 } 51 52 … … 81 82 { 82 83 SoundEngine::getInstance()->removeSource(this); 84 alDeleteSources(1, &this->sourceID); 83 85 } 84 86 … … 187 189 this->listener->getVelocity().z); 188 190 Vector absDirV = this->listener->getAbsDirV(); 189 alListener3f(AL_ORIENTATION, 190 absDirV.x, 191 absDirV.y, 192 absDirV.z); 191 ALfloat orientation [6] = {1,0,0, absDirV.x, absDirV.y, absDirV.z}; 192 alListenerfv(AL_ORIENTATION, orientation); 193 193 } 194 194 else -
orxonox/branches/openAL/src/story_entities/world.cc
r4197 r4198 490 490 491 491 SoundEngine::getInstance()->setListener(tn); 492 SoundBuffer* tBuffer =new SoundBuffer( "explo.wav");492 SoundBuffer* tBuffer =new SoundBuffer(ResourceManager::getFullName("sound/explo.wav")); 493 493 SoundSource* tSound = new SoundSource(tBuffer, this->localPlayer); 494 494 tSound->play();
Note: See TracChangeset
for help on using the changeset viewer.