From 457f888ea7c6dc7cefc7491c5fc74b057f7ef1eb Mon Sep 17 00:00:00 2001 From: Jamieson Christian Date: Tue, 30 Sep 2003 13:18:25 +0000 Subject: Fixed MT-32 init not getting called svn-id: r10501 --- scumm/imuse.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'scumm') diff --git a/scumm/imuse.cpp b/scumm/imuse.cpp index dc74f91413..2d6b1fd942 100644 --- a/scumm/imuse.cpp +++ b/scumm/imuse.cpp @@ -1087,6 +1087,8 @@ uint32 IMuseInternal::property(int prop, uint32 value) { case IMuse::PROP_NATIVE_MT32: _native_mt32 = (value > 0); Instrument::nativeMT32(value > 0); + if (value > 0 && _midi_native) + initMT32(_midi_native); break; case IMuse::PROP_MULTI_MIDI: @@ -1165,9 +1167,6 @@ void IMuseInternal::initMidiDriver(MidiDriver *midi) { if (result) error("IMuse initialization - %s", MidiDriver::getErrorName(result)); - if (_native_mt32) - initMT32(midi); - // Connect to the driver's timer midi->setTimerCallback(midi, &IMuseInternal::midiTimerCallback); } -- cgit v1.2.3