diff options
author | Willem Jan Palenstijn | 2007-06-26 22:33:07 +0000 |
---|---|---|
committer | Willem Jan Palenstijn | 2007-06-26 22:33:07 +0000 |
commit | 1af6b35edb6ab14c877ba91beb48f2cd57c4388d (patch) | |
tree | 9f5910f5397e24c2067c28e04a94a850a4ba72b0 /engines | |
parent | f55d08a2d99a41cfe6cabf4243100d812c9fd53b (diff) | |
download | scummvm-rg350-1af6b35edb6ab14c877ba91beb48f2cd57c4388d.tar.gz scummvm-rg350-1af6b35edb6ab14c877ba91beb48f2cd57c4388d.tar.bz2 scummvm-rg350-1af6b35edb6ab14c877ba91beb48f2cd57c4388d.zip |
increase mt-32 sysex delay to prevent buffer overflow (see FR#1393726)
svn-id: r27731
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sky/music/mt32music.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sky/music/mt32music.cpp b/engines/sky/music/mt32music.cpp index 4f816c6856..6a503c16b4 100644 --- a/engines/sky/music/mt32music.cpp +++ b/engines/sky/music/mt32music.cpp @@ -120,7 +120,7 @@ bool MT32Music::processPatchSysEx(uint8 *sysExData) { crc -= sysExBuf[cnt]; sysExBuf[14] = crc & 0x7F; // crc _midiDrv->sysEx(sysExBuf, 15); - g_system->delayMillis(5); + g_system->delayMillis(40); return true; } @@ -170,7 +170,7 @@ void MT32Music::startDriver(void) { sendBuf[len] = crc & 0x7F; len++; _midiDrv->sysEx(sendBuf, len); - g_system->delayMillis (5); + g_system->delayMillis (40); } while (processPatchSysEx(sysExData)) |