mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-21 17:45:39 +00:00
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. svn-id: r52718
This commit is contained in:
parent
2a353089aa
commit
efc13c42b2
@ -74,6 +74,9 @@ SoundGenMIDI::SoundGenMIDI(AgiEngine *vm, Audio::Mixer *pMixer) : SoundGen(vm, p
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user