Ticket #1246: mt32-notes-cut-fix.diff
File mt32-notes-cut-fix.diff, 1.1 KB (added by , 21 years ago) |
---|
-
scumm\imuse.cpp
old new 1177 1177 if (len > 20) 1178 1178 len = 20; 1179 1179 1180 // Set master volume to 100% 1181 memcpy(&buffer[4], "\x10\x00\x16\x64\x76", 5); 1182 midi->sysEx(buffer, 9); 1183 1180 1184 // Reset the MT-32 1181 1185 memcpy(&buffer[4], "\x7f\x00\x00\x01\x00", 5); 1182 1186 midi->sysEx(buffer, 9); 1183 1187 1188 // Set partial reserve equally for all channels 1189 memcpy(&buffer[4], "\x10\x00\x04\x03\x03\x03\x03\x03\x03\x03\x03\x03\x51", 13); 1190 midi->sysEx(buffer, 17); 1191 1192 /* FIXME: The MT-32 isn't fast enough to execute all this SysEx stuff at ones.and 1193 therefor the welcome message SysEx produces an execution buffer overflow error. 1194 So a short delay of about 100 milli seconds or so needs to be added here. Also the 1195 MT-32 reset is done after the master volume (which is not affected by the reset) 1196 since it is faster for some reason and would also require a delay otherwise.*/ 1197 1184 1198 // Display a welcome message on MT-32 displays. 1185 1199 memcpy(&buffer[4], "\x20\x00\x00", 3); 1186 1200 memcpy(&buffer[7], " ", 20);