]> git.mxchange.org Git - flightgear.git/commitdiff
Fix a bug in transit sound termination and adjust the minimum time we
authorcurt <curt>
Tue, 4 Feb 2003 18:18:24 +0000 (18:18 +0000)
committercurt <curt>
Tue, 4 Feb 2003 18:18:24 +0000 (18:18 +0000)
wait with no change before stoping the sound.

src/Sound/fg_sound.cxx
src/Sound/fg_sound.hxx

index b11ba15903d9c4cbb2489c1a2e38cbb203951cca..9f20d3b6d974c9615c9aba1f0de06418f3fb50f7 100644 (file)
@@ -270,7 +270,7 @@ FGSound::update (double dt)
       )
    {
 
-      if ((_mode != FGSound::IN_TRANSIT) || (_stopping < MAX_TRANSIT_TIME)) {
+      if ((_mode != FGSound::IN_TRANSIT) || (_stopping > MAX_TRANSIT_TIME)) {
 
          if (_sample->is_playing()) {
             SG_LOG(SG_GENERAL, SG_INFO, "Stopping audio after " << _dt_play
index e3c0cda4618a123f0cadafa59467a2405b1d7ca5..ce66e13a3dbdd985c3f9c41313e4a0f0ca8b0e80 100644 (file)
@@ -33,7 +33,7 @@
 
 #include "soundmgr.hxx"
 
-static const double MAX_TRANSIT_TIME = 0.01;   // 10 ms.
+static const double MAX_TRANSIT_TIME = 0.1;    // 10 ms.
 
 
 /**