[Scummvm-git-logs] scummvm master -> 5ab4185257e25c0a26701dc7bc2ad5cfa0e52d0c

bluegr bluegr at gmail.com
Wed Feb 19 06:08:45 UTC 2020


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:
5ab4185257 SCI: using only channels 1-8 on GM devices


Commit: 5ab4185257e25c0a26701dc7bc2ad5cfa0e52d0c
    https://github.com/scummvm/scummvm/commit/5ab4185257e25c0a26701dc7bc2ad5cfa0e52d0c
Author: Zvika Haramaty (haramaty.zvika at gmail.com)
Date: 2020-02-19T08:08:40+02:00

Commit Message:
SCI: using only channels 1-8 on GM devices

There are many situations that GM sounds worse than MT, even for games
that were written for GM.
I think this is related to this.
And, there is a note in midi.cpp:
// NOTE: SSCI uses channels 1 through 8 for General MIDI as well, in the drivers I checked

Also, issue #6686 reports that using the "higher" channels causes
problem on a real SC-55.

This change solves at least: #6686, #9735 and #10297

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


diff --git a/engines/sci/sound/drivers/midi.cpp b/engines/sci/sound/drivers/midi.cpp
index 7c90adb..1aa0b0f 100644
--- a/engines/sci/sound/drivers/midi.cpp
+++ b/engines/sci/sound/drivers/midi.cpp
@@ -465,15 +465,11 @@ void MidiPlayer_Midi::send(uint32 b) {
 // We return 1 for mt32, because if we remap channels to 0 for mt32, those won't get played at all
 // NOTE: SSCI uses channels 1 through 8 for General MIDI as well, in the drivers I checked
 int MidiPlayer_Midi::getFirstChannel() const {
-	if (_mt32Type != kMt32TypeNone)
-		return 1;
-	return 0;
+	return 1;
 }
 
 int MidiPlayer_Midi::getLastChannel() const {
-	if (_mt32Type != kMt32TypeNone)
-		return 8;
-	return 15;
+	return 8;
 }
 
 void MidiPlayer_Midi::setVolume(byte volume) {




More information about the Scummvm-git-logs mailing list