1
0
Fork 0

Fix a bug in transit sound termination and adjust the minimum time we

wait with no change before stoping the sound.
This commit is contained in:
curt 2003-02-04 18:18:24 +00:00
parent 8228afdbac
commit 0111a2c71c
2 changed files with 2 additions and 2 deletions

View 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

View 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.
/**