diff options
author | Filippos Karapetis | 2011-02-10 21:10:49 +0000 |
---|---|---|
committer | Filippos Karapetis | 2011-02-10 21:10:49 +0000 |
commit | 6a4ea3abd30dac9d79cc3424b2457fc596b75191 (patch) | |
tree | cde907cea187493a69e2b19fd4fd60b0c9c208fb /engines/sci/sound/drivers | |
parent | 2ceb4339e942e45372399691e13b33a92cb4d862 (diff) | |
download | scummvm-rg350-6a4ea3abd30dac9d79cc3424b2457fc596b75191.tar.gz scummvm-rg350-6a4ea3abd30dac9d79cc3424b2457fc596b75191.tar.bz2 scummvm-rg350-6a4ea3abd30dac9d79cc3424b2457fc596b75191.zip |
SCI: Added comments to the FB-01 and MIDI drivers. The original driver files are only
needed in SCI0 early games, which didn't include separate sound patch resources. Thanks
to waltervn for the information he supplied
svn-id: r55875
Diffstat (limited to 'engines/sci/sound/drivers')
-rw-r--r-- | engines/sci/sound/drivers/fb01.cpp | 5 | ||||
-rw-r--r-- | engines/sci/sound/drivers/midi.cpp | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/engines/sci/sound/drivers/fb01.cpp b/engines/sci/sound/drivers/fb01.cpp index 7560c62f4f..ce48b7f1f8 100644 --- a/engines/sci/sound/drivers/fb01.cpp +++ b/engines/sci/sound/drivers/fb01.cpp @@ -486,6 +486,11 @@ int MidiPlayer_Fb01::open(ResourceManager *resMan) { if (res) { sendBanks(res->data, res->size); } else { + // Early SCI0 games have the sound bank embedded in the IMF driver. + // Note that these games didn't actually support the FB-01 as a device, + // but the IMF, which is the same device on an ISA card. Check: + // http://wiki.vintage-computer.com/index.php/IBM_Music_feature_card + warning("FB-01 patch file not found, attempting to load sound bank from IMF.DRV"); // Try to load sound bank from IMF.DRV Common::File f; diff --git a/engines/sci/sound/drivers/midi.cpp b/engines/sci/sound/drivers/midi.cpp index b9a973ad7d..08e93d3213 100644 --- a/engines/sci/sound/drivers/midi.cpp +++ b/engines/sci/sound/drivers/midi.cpp @@ -878,6 +878,7 @@ int MidiPlayer_Midi::open(ResourceManager *resMan) { readMt32Patch(res->data, res->size); } } else { + // Early SCI0 games have the sound bank embedded in the MT-32 driver readMt32DrvData(); } } else { @@ -940,6 +941,8 @@ int MidiPlayer_Midi::open(ResourceManager *resMan) { } } } else { + // Early SCI0 games have the sound bank embedded in the MT-32 driver + // No MT-32 patch present, try to read from MT32.DRV Common::File f; |