Ticket #8283: mt32setup.diff
File mt32setup.diff, 1.5 KB (added by , 21 years ago) |
---|
-
scumm\imuse.cpp
old new 1171 1171 } 1172 1172 1173 1173 void IMuseInternal::initMT32(MidiDriver *midi) { 1174 byte buffer[ 32] = "\x41\x10\x16\x12\x00\x00\x00";1174 byte buffer[52] = "\x41\x10\x16\x12\x00\x00\x00 "; 1175 1175 char info[256] = "ScummVM "; 1176 1176 int len; 1177 1177 … … 1197 1197 midi->sysEx(buffer, 28); 1198 1198 g_system->delay_msecs (500); 1199 1199 1200 // Set master volume to 100% 1201 memcpy(&buffer[4], "\x10\x00\x16\x64\x76", 5); 1202 midi->sysEx(buffer, 9); 1203 g_system->delay_msecs (500); 1200 // Setup master tune, reverb mode, reverb time, reverb level, 1201 // channel mapping, partial reserve and master volume 1202 memcpy(&buffer[4], "\x10\x00\x00\x40\x00\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x64\x77", 27); 1203 midi->sysEx(buffer, 31); 1204 g_system->delay_msecs (100); 1204 1205 1205 // Set partial reserve equally for all channels 1206 memcpy(&buffer[4], "\x10\x00\x04\x04\x04\x04\x04\x04\x04\x04\x04\x00\x4C", 13); 1207 midi->sysEx(buffer, 17); 1206 // Setup rythm part 1207 memcpy(&buffer[4], "\x03\x01\x10\x40\x64\x07\x00\x4a\x64\x06\x00\x41\x64\x07\x00\x4b\x64\x08\x00\x45\x64\x06\x00\x44\x64\x0b\x00\x51\x64\x05\x00\x43\x64\x08\x00\x50\x64\x07\x00\x42\x64\x03\x00\x4c\x64\x07\x00\x44", 48); 1208 midi->sysEx(buffer, 52); 1209 g_system->delay_msecs (100); 1208 1210 } 1209 1211 1210 1212 void IMuseInternal::init_queue() {