Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4198 in orxonox.OLD for orxonox/branches/openAL/src/lib


Ignore:
Timestamp:
May 16, 2005, 4:41:58 PM (20 years ago)
Author:
bensch
Message:

orxonox/branches/openAL: patch, now it loads the wav from where it should

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/openAL/src/lib/sound/sound_engine.cc

    r4197 r4198  
    4848{
    4949  SoundEngine::getInstance()->removeBuffer(this);
     50  alDeleteBuffers(1, &this->bufferID);
    5051}
    5152
     
    8182{
    8283  SoundEngine::getInstance()->removeSource(this);
     84  alDeleteSources(1, &this->sourceID);
    8385}
    8486
     
    187189                   this->listener->getVelocity().z);
    188190      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);
    193193    }
    194194  else
Note: See TracChangeset for help on using the changeset viewer.