diff options
author | Max Horn | 2011-03-28 18:06:24 +0200 |
---|---|---|
committer | Max Horn | 2011-03-28 18:06:36 +0200 |
commit | 8c931fd1e8c0ced874f4cb5fe77197b39b940528 (patch) | |
tree | 798b30acf547ec6a277b5063978d99f34a1df2d0 /engines/made | |
parent | a33ee051d05ffc5e30e4fc4728714128028e89b1 (diff) | |
download | scummvm-rg350-8c931fd1e8c0ced874f4cb5fe77197b39b940528.tar.gz scummvm-rg350-8c931fd1e8c0ced874f4cb5fe77197b39b940528.tar.bz2 scummvm-rg350-8c931fd1e8c0ced874f4cb5fe77197b39b940528.zip |
AUDIO: Add Audio::MidiPlayer::createDriver(), let some engines use it
Diffstat (limited to 'engines/made')
-rw-r--r-- | engines/made/music.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/engines/made/music.cpp b/engines/made/music.cpp index c8b13ba210..2e06871e13 100644 --- a/engines/made/music.cpp +++ b/engines/made/music.cpp @@ -38,14 +38,7 @@ namespace Made { MusicPlayer::MusicPlayer() : _isGM(false) { - MidiDriver::DeviceHandle dev = MidiDriver::detectDevice(MDT_MIDI | MDT_ADLIB | MDT_PREFER_GM); - _nativeMT32 = ((MidiDriver::getMusicType(dev) == MT_MT32) || ConfMan.getBool("native_mt32")); - //bool adlib = (MidiDriver::getMusicType(dev) == MT_ADLIB); - - _driver = MidiDriver::createMidi(dev); - assert(_driver); - if (_nativeMT32) - _driver->property(MidiDriver::PROP_CHANNEL_MASK, 0x03FE); + MidiPlayer::createDriver(); int ret = _driver->open(); if (ret == 0) { |