diff options
author | Vitaly Novichkov <admin@wohlnet.ru> | 2018-05-20 02:07:05 +0300 |
---|---|---|
committer | Vitaly Novichkov <admin@wohlnet.ru> | 2018-05-20 02:07:05 +0300 |
commit | f545d69e3384e235828580e3f3e64aa959435478 (patch) | |
tree | 1b7e01fe2ee74c416c92e700b5aef3fe876c22ec /src/adlmidi_midiplay.cpp | |
parent | 622425a6c8db4d668925b3d7d3240f23034d963e (diff) | |
download | libADLMIDI-f545d69e3384e235828580e3f3e64aa959435478.tar.gz libADLMIDI-f545d69e3384e235828580e3f3e64aa959435478.tar.bz2 libADLMIDI-f545d69e3384e235828580e3f3e64aa959435478.zip |
Polishing default tempo for MIDI files are lacks the tempo event
#91
Diffstat (limited to 'src/adlmidi_midiplay.cpp')
-rw-r--r-- | src/adlmidi_midiplay.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/adlmidi_midiplay.cpp b/src/adlmidi_midiplay.cpp index 8aab901..7919e91 100644 --- a/src/adlmidi_midiplay.cpp +++ b/src/adlmidi_midiplay.cpp @@ -1822,6 +1822,14 @@ MIDIplay::MidiEvent MIDIplay::parseEvent(uint8_t **pptr, uint8_t *end, int &stat evt.subtype = evtype; evt.data.insert(evt.data.begin(), data.begin(), data.end()); +#if 0 /* Print all tempo events */ + if(evt.subtype == MidiEvent::ST_TEMPOCHANGE) + { + if(hooks.onDebugMessage) + hooks.onDebugMessage(hooks.onDebugMessage_userData, "Temp Change: %02X%02X%02X", evt.data[0], evt.data[1], evt.data[2]); + } +#endif + /* TODO: Store those meta-strings separately and give ability to read them * by external functions (to display song title and copyright in the player) */ if(evt.subtype == MidiEvent::ST_COPYRIGHT) |