diff options
author | Filippos Karapetis | 2015-07-14 08:25:22 +0300 |
---|---|---|
committer | Willem Jan Palenstijn | 2015-07-22 22:51:10 +0200 |
commit | ad0fc5787f53e4ccb5888ff14f36f0b04bcf9ff3 (patch) | |
tree | 614c9624acd131355b19ed1c2f92472f5527faf2 /engines/access | |
parent | b4c15c674d66596e043d28abb0dcfa997d0d8dcb (diff) | |
download | scummvm-rg350-ad0fc5787f53e4ccb5888ff14f36f0b04bcf9ff3.tar.gz scummvm-rg350-ad0fc5787f53e4ccb5888ff14f36f0b04bcf9ff3.tar.bz2 scummvm-rg350-ad0fc5787f53e4ccb5888ff14f36f0b04bcf9ff3.zip |
ACCESS: MM doesn't use Miles Audio
Diffstat (limited to 'engines/access')
-rw-r--r-- | engines/access/sound.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/engines/access/sound.cpp b/engines/access/sound.cpp index f2dc0fdf4c..51ffb88f37 100644 --- a/engines/access/sound.cpp +++ b/engines/access/sound.cpp @@ -213,13 +213,17 @@ MusicManager::MusicManager(AccessEngine *vm) : _vm(vm) { // switch (musicType) { case MT_ADLIB: { - Resource *midiDrvResource = _vm->_files->loadFile(92, 1); - Common::MemoryReadStream *adLibInstrumentStream = new Common::MemoryReadStream(midiDrvResource->data(), midiDrvResource->_size); + if (_vm->getGameID() == GType_Amazon) { + Resource *midiDrvResource = _vm->_files->loadFile(92, 1); + Common::MemoryReadStream *adLibInstrumentStream = new Common::MemoryReadStream(midiDrvResource->data(), midiDrvResource->_size); - _driver = Audio::MidiDriver_Miles_AdLib_create("", "", adLibInstrumentStream); + _driver = Audio::MidiDriver_Miles_AdLib_create("", "", adLibInstrumentStream); - delete midiDrvResource; - delete adLibInstrumentStream; + delete midiDrvResource; + delete adLibInstrumentStream; + } else { + MidiPlayer::createDriver(); + } break; } case MT_MT32: |