Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4878


Ignore:
Timestamp:
Jun 14, 2007, 2:23:49 AM (17 years ago)
Author:
landauf
Message:
 
Location:
data/contentcreation/pps/FabianLandau/mover
Files:
4 added
1 edited

Legend:

Unmodified
Added
Removed
  • data/contentcreation/pps/FabianLandau/mover/environments/mover.cc

    r4855 r4878  
    1515
    1616#include "sound/resource_sound_buffer.h"
     17#include "sound_engine.h"
    1718#include "util/loading/load_param_xml.h"
    1819#include "util/loading/load_param.h"
     
    236237    if (this->triggers && this->triggers->isTriggered())
    237238    {
    238         this->soundSource_moving.play();
     239        this->soundSource_moving.play(this->stations->getMovingSound(this->station), OrxSound::SoundEngine::getInstance()->getEffectsVolume(), 0.5, true);
    239240        return MOVE;
    240241    }
     
    278279
    279280    if (this->stations->getStartingSound(this->station).loaded())
    280         this->soundSource_starting.play(this->stations->getStartingSound(this->station));
     281        this->soundSource_starting.play(this->stations->getStartingSound(this->station), OrxSound::SoundEngine::getInstance()->getEffectsVolume(), 0.5);
    281282    if (this->stations->getMovingSound(this->station).loaded())
    282         this->soundSource_moving.play(this->stations->getMovingSound(this->station), 1.0, true);
     283        this->soundSource_moving.play(this->stations->getMovingSound(this->station), OrxSound::SoundEngine::getInstance()->getEffectsVolume(), 0.5, true);
    283284
    284285    this->time = 0;
     
    315316
    316317        if (this->stations->getEndingSound(this->station).loaded())
    317             this->soundSource_ending.play(this->stations->getEndingSound(this->station));
     318            this->soundSource_ending.play(this->stations->getEndingSound(this->station), OrxSound::SoundEngine::getInstance()->getEffectsVolume(), 0.5);
    318319        this->soundSource_moving.stop();
    319320
Note: See TracChangeset for help on using the changeset viewer.