From 8b197e4ec70a52f91c0774be98acf5b373542bde Mon Sep 17 00:00:00 2001 From: athrxx Date: Thu, 1 Aug 2019 22:36:59 +0200 Subject: 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. --- engines/sci/sound/drivers/fmtowns.cpp | 2 ++ 1 file changed, 2 insertions(+) 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) { -- cgit v1.2.3