summaryrefslogtreecommitdiff
path: root/src/music
diff options
context:
space:
mode:
authorNiels Martin Hansen <nielsm@indvikleren.dk>2018-03-18 16:15:14 +0100
committerMichael Lutz <michi@icosahedron.de>2018-05-01 22:29:53 +0200
commit99a39c842c8721ec3c52082399cbac5e5e0adf10 (patch)
tree458664d2b05b0d46a23e8e7ef89a86ad37655bf9 /src/music
parentb902e01e10b193749bd4367a6042ceb3cf3a7d54 (diff)
downloadopenttd-99a39c842c8721ec3c52082399cbac5e5e0adf10.tar.xz
Change: [Win32 MIDI] Send Roland reverb control message like TTD DOS does
Diffstat (limited to 'src/music')
-rw-r--r--src/music/win32_m.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/music/win32_m.cpp b/src/music/win32_m.cpp
index 57bbd1f93..bd2ed7038 100644
--- a/src/music/win32_m.cpp
+++ b/src/music/win32_m.cpp
@@ -362,6 +362,10 @@ const char *MusicDriver_Win32::Start(const char * const *parm)
static byte gm_enable_sysex[] = { 0xF0, 0x7E, 0x00, 0x09, 0x01, 0xF7 };
TransmitSysexConst(&gm_enable_sysex[0], sizeof(gm_enable_sysex));
+ /* Roland-specific reverb room control, used by the original game */
+ static byte roland_reverb_sysex[] = { 0xF0, 0x41, 0x10, 0x42, 0x12, 0x40, 0x01, 0x30, 0x02, 0x04, 0x00, 0x40, 0x40, 0x00, 0x00, 0x09, 0xF7 };
+ TransmitSysexConst(&roland_reverb_sysex[0], sizeof(roland_reverb_sysex));
+
/* prepare multimedia timer */
TIMECAPS timecaps;
if (timeGetDevCaps(&timecaps, sizeof(timecaps)) == MMSYSERR_NOERROR) {