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:
parent
8228afdbac
commit
0111a2c71c
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue