[Scummvm-cvs-logs] scummvm master -> 710aeb380b5becc71228800a047ea47a50132309
m-kiewitz
m_kiewitz at users.sourceforge.net
Wed Jul 1 20:39:14 CEST 2015
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:
710aeb380b AGOS: SIMON2: set nativeMT32, so mt32 tracks get
Commit: 710aeb380b5becc71228800a047ea47a50132309
https://github.com/scummvm/scummvm/commit/710aeb380b5becc71228800a047ea47a50132309
Author: Martin Kiewitz (m_kiewitz at users.sourceforge.net)
Date: 2015-07-01T20:39:00+02:00
Commit Message:
AGOS: SIMON2: set nativeMT32, so mt32 tracks get
set _nativeMT32, so that the MT32 XMIDI track set is getting used
and not the general MIDI one for MT32 Miles Audio playback.
This should solve the MT32 music issues, although this needs
to get verified in detail.
Changed paths:
engines/agos/midi.cpp
diff --git a/engines/agos/midi.cpp b/engines/agos/midi.cpp
index fb6faef..fdc2227 100644
--- a/engines/agos/midi.cpp
+++ b/engines/agos/midi.cpp
@@ -109,6 +109,10 @@ int MidiPlayer::open(int gameType, bool isDemo) {
case GType_SIMON2:
//_musicMode = kMusicModeMilesAudio;
// currently disabled, because there are a few issues
+ // MT32 seems to work fine now, AdLib seems to use bad instruments and is also outputting music on
+ // the right speaker only. The original driver did initialize the panning to 0 and the Simon2 XMIDI
+ // tracks don't set panning at all. We can reset panning to be centered, which would solve this
+ // issue, but we still don't know who's setting it in the original interpreter.
break;
default:
break;
@@ -370,15 +374,19 @@ int MidiPlayer::open(int gameType, bool isDemo) {
switch (milesAudioMusicType) {
case MT_ADLIB: {
_driver = Audio::MidiDriver_Miles_AdLib_create("MIDPAK.AD", "MIDPAK.AD");
+ // TODO: not sure what's going wrong with AdLib
+ // it doesn't seem to matter if we use the regular XMIDI tracks or the 2nd set meant for MT32
break;
}
case MT_MT32:
_driver = Audio::MidiDriver_Miles_MT32_create("");
+ _nativeMT32 = true; // use 2nd set of XMIDI tracks
break;
case MT_GM:
if (ConfMan.getBool("native_mt32")) {
_driver = Audio::MidiDriver_Miles_MT32_create("");
milesAudioMusicType = MT_MT32;
+ _nativeMT32 = true; // use 2nd set of XMIDI tracks
}
break;
More information about the Scummvm-git-logs
mailing list