Skip to content

Commit

Permalink
SCUMM: (LOOM) - fix volume glitch (regression)
Browse files Browse the repository at this point in the history
  • Loading branch information
athrxx committed Apr 30, 2023
1 parent 19e6798 commit cbccad7
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions engines/scumm/imuse/imuse_part.cpp
Expand Up @@ -367,21 +367,16 @@ void Part::sendAll() {
}

void Part::sendPitchBend() {
if (!_mc)
return;

if (_se->_newSystem && !_pitchbend_factor) {
sendVolumeFade();
return;
}

_mc->pitchBend(_pitchbend);
if (_mc)
_mc->pitchBend(_pitchbend);
}

void Part::sendVolume(int8 fadeModifier) {
if (!_mc)
return;

uint16 vol = (_vol + fadeModifier + 1) * _player->getEffectiveVolume();

if (_se->_newSystem)
Expand Down

0 comments on commit cbccad7

Please sign in to comment.