From a8dde37099558dc805dfa07eb870c2baf66f4fec Mon Sep 17 00:00:00 2001 From: Wohlstand Date: Mon, 23 Oct 2017 06:12:22 +0300 Subject: Prepare to implement seekability - pre-parse all MIDI events before play All parsed events will be stored into special time marked containers and will be sorted by type to avoid possible issues caused by incorrect order of meta or note-on/off events, etc. Time markers are needed to easier detect seconds position to seek. TODO: Fix IMF playback --- src/adlmidi_load.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/adlmidi_load.cpp') diff --git a/src/adlmidi_load.cpp b/src/adlmidi_load.cpp index 1c0e7ef..9ec14e7 100644 --- a/src/adlmidi_load.cpp +++ b/src/adlmidi_load.cpp @@ -774,6 +774,9 @@ InvFmt: return false; } + //Build new MIDI events table (WIP!!!) + buildTrackData(); + opl.Reset(); // Reset AdLib //opl.Reset(); // ...twice (just in case someone misprogrammed OPL3 previously) ch.clear(); -- cgit v1.2.3