diff options
-rw-r--r-- | engines/kyra/sound/drivers/mlalf98.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/kyra/sound/drivers/mlalf98.cpp b/engines/kyra/sound/drivers/mlalf98.cpp index b2cb6d909c..1474589032 100644 --- a/engines/kyra/sound/drivers/mlalf98.cpp +++ b/engines/kyra/sound/drivers/mlalf98.cpp @@ -436,7 +436,7 @@ bool SoundChannel::_globalBlock = false; SoundChannel::SoundChannel(PC98AudioCore *pc98a, int part, int regOffset, int type) : _pc98a(pc98a), _regOffset(regOffset), _part(part), _ticksLeft(0), _program(0), _volume(0), _algorithm(0), _envRR(0), _vbrDelay(0), _vbrRem(0), _vbrRate(0), _vbrTicker(0), _vbrStepSize(0), _vbrModifier(0), _vbrDepth(0), _vbrState(0), _duration(0), _frequency(0), _flags2(0), _note(0), _flags(0), -_transpose(0), _envCurLvl(0), _fadeVolModifier(0), _fadeProgress(0), _fadeTicker(0), _trmCarrier(1), +_transpose(0), _envCurLvl(0), _fadeVolModifier(0), _fadeProgress(0), _fadeTicker(16), _trmCarrier(1), _dataPtr(0), _dataEnd(0), _loopStartPtr(0), _instrBuffer(0), _backupData(0), _mute(false), _type(type) { _subOpcodes[0].reserve(8); _subOpcodes[1].reserve(8); @@ -510,6 +510,8 @@ void SoundChannel::updateFadeOut() { if (--_fadeTicker) return; + _fadeTicker = 16; + if (!_fadeProgress) return; |