diff options
author | Niels Martin Hansen <nielsm@indvikleren.dk> | 2019-07-04 21:14:41 +0200 |
---|---|---|
committer | Niels Martin Hansen <nielsm@indvikleren.dk> | 2019-07-04 22:27:34 +0200 |
commit | 27384486e486ea2ced69b48f5174577317108731 (patch) | |
tree | 99a63f13ce4450bded86b245e9518faacbdfd222 /src/music/midi.h | |
parent | 9d8a83bf8d6f1753ea7dc99faa94695c050d818c (diff) | |
download | openttd-27384486e486ea2ced69b48f5174577317108731.tar.xz |
Codechange: Use common source for well-known SysEx messages in Windows music drivers
Diffstat (limited to 'src/music/midi.h')
-rw-r--r-- | src/music/midi.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/music/midi.h b/src/music/midi.h index 473f7f18b..90f04435e 100644 --- a/src/music/midi.h +++ b/src/music/midi.h @@ -141,4 +141,19 @@ enum MidiController { MIDICT_MODE_POLY = 127, }; + +/** Well-known MIDI system exclusive message values for use with the MidiGetStandardSysexMessage function. */ +enum class MidiSysexMessage { + /** Reset device to General MIDI defaults */ + ResetGM, + /** Reset device to (Roland) General Standard defaults */ + ResetGS, + /** Reset device to (Yamaha) XG defaults */ + ResetXG, + /** Set up Roland SoundCanvas reverb room as TTD does */ + RolandSetReverb, +}; + +const byte *MidiGetStandardSysexMessage(MidiSysexMessage msg, size_t &length); + #endif /* MUSIC_MIDI_H */ |