aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorathrxx2019-08-01 22:36:59 +0200
committerathrxx2019-08-07 16:43:05 +0200
commit8b197e4ec70a52f91c0774be98acf5b373542bde (patch)
tree5185b2c45e460d7b191619c121735f3be3c4be63
parente293ef0ed5279be7911e76e90c5660a2b9306741 (diff)
downloadscummvm-rg350-8b197e4ec70a52f91c0774be98acf5b373542bde.tar.gz
scummvm-rg350-8b197e4ec70a52f91c0774be98acf5b373542bde.tar.bz2
scummvm-rg350-8b197e4ec70a52f91c0774be98acf5b373542bde.zip
SCI: (FM-Towns sound driver) - fix pitchwheel glitch
Pitchwheel and channel volume settings need to be updated when the channels get reassigned. This bug caused faulty music at least in KQ5 when walking from the dwarves scene into the harp playing tree scene.
-rw-r--r--engines/sci/sound/drivers/fmtowns.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/sci/sound/drivers/fmtowns.cpp b/engines/sci/sound/drivers/fmtowns.cpp
index eb2f8aa45c..4dd74bc42d 100644
--- a/engines/sci/sound/drivers/fmtowns.cpp
+++ b/engines/sci/sound/drivers/fmtowns.cpp
@@ -327,6 +327,8 @@ void TownsMidiPart::addChannels(int num) {
_chanMissing += num;
programChange(_program);
+ pitchBend(_pitchBend);
+ controlChangeVolume(_volume << 1);
}
void TownsMidiPart::dropChannels(int num) {