Ticket #9261: mt32_reverb.patch

File mt32_reverb.patch, 635 bytes (added by SF/sven3000, 14 years ago)

Patch to fix MT-32 reverb config data parsing (does not fix sending initial reverb issue)

  • engines/sci/sound/drivers/midi.cpp

     
    476479        str->seek(11, SEEK_CUR);
    477480
    478481        // Read reverb data
    479         for (int i = 0; i < kReverbConfigNr; i++) {
    480                 _reverbConfig[i][0] = str->readByte();
    481                 _reverbConfig[i][1] = str->readByte();
    482                 _reverbConfig[i][2] = str->readByte();
     482        for (int j = 0; j < 3; ++j) {
     483                for (int i = 0; i < kReverbConfigNr; i++) {
     484                        _reverbConfig[i][j] = str->readByte();
     485                }
    483486        }
    484487
    485488        // Patches 1-48