aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorathrxx2020-01-06 17:32:54 +0100
committerathrxx2020-01-07 22:47:31 +0100
commit3dd3b616858ed3aeda4cd0cb047f19efb588f7b2 (patch)
treec173a3ac0f520ba7722625a6c026783989f08519 /engines
parentda8bfeca5ec68550c49863e8ed4390337a48c0c9 (diff)
downloadscummvm-rg350-3dd3b616858ed3aeda4cd0cb047f19efb588f7b2.tar.gz
scummvm-rg350-3dd3b616858ed3aeda4cd0cb047f19efb588f7b2.tar.bz2
scummvm-rg350-3dd3b616858ed3aeda4cd0cb047f19efb588f7b2.zip
KYRA: (EOB/PC98) - fix music fadeout
(irrelevant to the game, since this function isn't used, but I like to fix it nonetheless)
Diffstat (limited to 'engines')
-rw-r--r--engines/kyra/sound/drivers/mlalf98.cpp4
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;