[Scummvm-cvs-logs] SF.net SVN: scummvm:[52718] scummvm/trunk/engines/agi/sound_midi.cpp

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Tue Sep 14 02:44:41 CEST 2010


Revision: 52718
          http://scummvm.svn.sourceforge.net/scummvm/?rev=52718&view=rev
Author:   lordhoto
Date:     2010-09-14 00:44:41 +0000 (Tue, 14 Sep 2010)

Log Message:
-----------
AGI: Improve support for MT-32 in the MIDI output.

Formerly the AGI MIDI code did not setup the channel mask properly, in case
"native_mt32" was set. This resulted in one missing channel (i.e. channel 0),
since the MT-32 only responds to data for channels 1-9.

Modified Paths:
--------------
    scummvm/trunk/engines/agi/sound_midi.cpp

Modified: scummvm/trunk/engines/agi/sound_midi.cpp
===================================================================
--- scummvm/trunk/engines/agi/sound_midi.cpp	2010-09-14 00:34:12 UTC (rev 52717)
+++ scummvm/trunk/engines/agi/sound_midi.cpp	2010-09-14 00:44:41 UTC (rev 52718)
@@ -74,6 +74,9 @@
 	DeviceHandle dev = MidiDriver::detectDevice(MDT_MIDI | MDT_ADLIB);
 	_driver = MidiDriver::createMidi(dev);
 
+	if (ConfMan.getBool("native_mt32"))
+		driver->property(MidiDriver::PROP_CHANNEL_MASK, 0x03FE);
+
 	memset(_channel, 0, sizeof(_channel));
 	memset(_channelVolume, 255, sizeof(_channelVolume));
 	_masterVolume = 0;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list