[Scummvm-git-logs] scummvm master -> 12197afd2f4eb85f702e4828384a5b8767795fef

athrxx athrxx at scummvm.org
Wed Oct 31 20:48:04 CET 2018


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
12197afd2f SCI: - minor fix to FM-TOWNS sound driver


Commit: 12197afd2f4eb85f702e4828384a5b8767795fef
    https://github.com/scummvm/scummvm/commit/12197afd2f4eb85f702e4828384a5b8767795fef
Author: athrxx (athrxx at scummvm.org)
Date: 2018-10-31T20:47:04+01:00

Commit Message:
SCI: - minor fix to FM-TOWNS sound driver

- workaround to fix music playback in Mixed Up Mothergoose
- remove a useless declaration

Changed paths:
    engines/sci/sound/drivers/fmtowns.cpp


diff --git a/engines/sci/sound/drivers/fmtowns.cpp b/engines/sci/sound/drivers/fmtowns.cpp
index 270843c..eb2f8aa 100644
--- a/engines/sci/sound/drivers/fmtowns.cpp
+++ b/engines/sci/sound/drivers/fmtowns.cpp
@@ -116,8 +116,6 @@ public:
 	MidiChannel *allocateChannel() { return 0; }
 	MidiChannel *getPercussionChannel() { return 0; }
 
-	uint8 currentProgram();
-
 	void timerCallback(int timerId);
 
 private:
@@ -640,7 +638,12 @@ byte MidiPlayer_FMTowns::getPlayId() const {
 }
 
 int MidiPlayer_FMTowns::getPolyphony() const {
-	return (_version == SCI_VERSION_1_EARLY) ? 1 : 6;
+	// WORKAROUND:
+	// I set the return value to 16 for SCI_VERSION_1_EARLY here, which fixes music playback in Mixed Up Mothergoose.
+	// This has been broken since the introduction of SciMusic::remapChannels() and the corresponding code.
+	// The original code of Mixed Up Mothergoose code doesn't have the remapping and doesn't seem to check the polyphony
+	// setting ever. So the value of 1 was probably incorrect.
+	return (_version == SCI_VERSION_1_EARLY) ? 16 : 6;
 }
 
 void MidiPlayer_FMTowns::playSwitch(bool play) {





More information about the Scummvm-git-logs mailing list