diff options
author | Filippos Karapetis | 2010-11-24 11:19:27 +0000 |
---|---|---|
committer | Filippos Karapetis | 2010-11-24 11:19:27 +0000 |
commit | fcd8a04c64edda33fb6211c79a781ee6dca04b2e (patch) | |
tree | d3c78ed083fec2f9333113dd6efeabed2f2ea9ce /engines/sci/sound | |
parent | fbd1ae7eb6ff09b62599721fa49d8d1ef18b488c (diff) | |
download | scummvm-rg350-fcd8a04c64edda33fb6211c79a781ee6dca04b2e.tar.gz scummvm-rg350-fcd8a04c64edda33fb6211c79a781ee6dca04b2e.tar.bz2 scummvm-rg350-fcd8a04c64edda33fb6211c79a781ee6dca04b2e.zip |
SCI: Read MT-32 reverb data correctly (patch #3117434)
svn-id: r54453
Diffstat (limited to 'engines/sci/sound')
-rw-r--r-- | engines/sci/sound/drivers/midi.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/sci/sound/drivers/midi.cpp b/engines/sci/sound/drivers/midi.cpp index 8d4da26103..5e79d104ad 100644 --- a/engines/sci/sound/drivers/midi.cpp +++ b/engines/sci/sound/drivers/midi.cpp @@ -475,11 +475,11 @@ void MidiPlayer_Midi::readMt32Patch(const byte *data, int size) { // Skip reverb SysEx message str->seek(11, SEEK_CUR); - // Read reverb data - for (int i = 0; i < kReverbConfigNr; i++) { - _reverbConfig[i][0] = str->readByte(); - _reverbConfig[i][1] = str->readByte(); - _reverbConfig[i][2] = str->readByte(); + // Read reverb data (stored vertically - patch #3117434) + for (int j = 0; j < 3; ++j) { + for (int i = 0; i < kReverbConfigNr; i++) { + _reverbConfig[i][j] = str->readByte(); + } } // Patches 1-48 |