Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 15, 2006, 4:57:51 PM (18 years ago)
Author:
amaechler
Message:

sound fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/atmospheric_engine/src/lib/graphics/effects/rain_effect.cc

    r8471 r8480  
    3939
    4040/* TODO:
    41   - preCaching
    4241  - test multiple rain emitters
    4342  - Think about what happens with building poss. to hang movewithcam off
     
    6968    if(rainActivate) {
    7069        this->activate();
    71         RainEffect::rainParticles->precache((int)this->rainLife);
     70        RainEffect::rainParticles->precache((int)this->rainLife * 5); // TODO: Figure out the correct value
    7271    }
    7372}
     
    155154    this->emitter->setSpread(this->rainWindForce / 50, 0.2);
    156155
    157     this->soundSource.loop(this->rainBuffer, this->soundRainVolume);
     156    this->soundSource.play(this->rainBuffer, this->soundRainVolume, true);
     157
    158158    if (this->rainWindForce != 0)
    159         this->soundSource.loop(this->windBuffer, 0.1f * this->rainWindForce);
     159        this->soundSource.play(this->windBuffer, 0.1f * this->rainWindForce, true);
    160160
    161161    if (this->rainFadeInDuration == 0)
Note: See TracChangeset for help on using the changeset viewer.