Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 16, 2005, 3:54:06 PM (19 years ago)
Author:
bensch
Message:

orxonox/branches/openAL: playing some sound.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/openAL/src/story_entities/world.cc

    r4194 r4197  
    5050
    5151#include "substring.h"
     52
     53#include "sound_engine.h"
    5254
    5355using namespace std;
     
    486488  terrain->setRelCoor(Vector(0,-10,0));
    487489  this->spawn(terrain);
     490
     491  SoundEngine::getInstance()->setListener(tn);
     492  SoundBuffer* tBuffer =new SoundBuffer("explo.wav");
     493  SoundSource* tSound = new SoundSource(tBuffer, this->localPlayer);
     494  tSound->play();
    488495
    489496
     
    11611168  this->garbageCollector->update();
    11621169  this->nullParent->update (this->dtS);
     1170
     1171  SoundEngine::getInstance()->update();
    11631172}
    11641173
Note: See TracChangeset for help on using the changeset viewer.