aboutsummaryrefslogtreecommitdiff
path: root/engines/draci
diff options
context:
space:
mode:
authorMax Horn2011-03-28 18:06:24 +0200
committerMax Horn2011-03-28 18:06:36 +0200
commit8c931fd1e8c0ced874f4cb5fe77197b39b940528 (patch)
tree798b30acf547ec6a277b5063978d99f34a1df2d0 /engines/draci
parenta33ee051d05ffc5e30e4fc4728714128028e89b1 (diff)
downloadscummvm-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/draci')
-rw-r--r--engines/draci/music.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/engines/draci/music.cpp b/engines/draci/music.cpp
index 242e58e92c..750410b329 100644
--- a/engines/draci/music.cpp
+++ b/engines/draci/music.cpp
@@ -38,14 +38,7 @@ namespace Draci {
MusicPlayer::MusicPlayer(const char *pathMask) : _pathMask(pathMask), _isGM(false), _track(-1) {
- 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) {