Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 17, 2005, 3:36:42 AM (19 years ago)
Author:
bensch
Message:

orxonox/branches/openAL: shoots now have a cool sound

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/openAL/src/world_entities/test_gun.cc

    r4194 r4208  
    3131#include "list.h"
    3232#include "animation3d.h"
     33#include "sound_engine.h"
    3334
    3435using namespace std;
     
    8687      this->animation3->addKeyFrame(Vector(-2.6, 0.1, -2.0), Quaternion(), 0.1, ANIM_LINEAR, ANIM_CONSTANT);
    8788    }
    88 
     89 
     90  this->fireSound = (SoundBuffer*)ResourceManager::getInstance()->load("sound/explo.wav", WAV);
     91  this->weaponSource = new SoundSource(this->fireSound, this);
    8992}
    9093
     
    137140      return;
    138141    }
     142
     143  weaponSource->play();
    139144
    140145  Projectile* pj = new TestBullet(this);
Note: See TracChangeset for help on using the changeset viewer.