Patch #1048326 Better MT-32 support

svn-id: r15635
This commit is contained in:
Eugene Sandulenko 2004-10-21 22:37:37 +00:00
parent 9cb88f1d46
commit 9d0b746aaa
21 changed files with 7066 additions and 29 deletions

View file

@ -1343,7 +1343,7 @@ void ScummEngine_v90he::scummInit() {
void ScummEngine::setupMusic(int midi) {
_midiDriver = GameDetector::detectMusicDriver(midi);
_native_mt32 = ConfMan.getBool("native_mt32");
_native_mt32 = (ConfMan.getBool("native_mt32") || (_midiDriver == MD_MT32));
#ifndef __GP32__ //ph0x FIXME, "quick dirty hack"
/* Bind the mixer to the system => mixer will be invoked
@ -1393,6 +1393,9 @@ void ScummEngine::setupMusic(int midi) {
}
if (midi == MDT_TOWNS)
_imuse->property(IMuse::PROP_DIRECT_PASSTHROUGH, 1);
if (_midiDriver == MD_MT32) {
_imuse->property(IMuse::PROP_DIRECT_PASSTHROUGH, 1);
}
_imuse->set_music_volume(ConfMan.getInt("music_volume"));
}
}