diff options
author | Wohlstand <admin@wohlnet.ru> | 2017-10-23 06:12:22 +0300 |
---|---|---|
committer | Wohlstand <admin@wohlnet.ru> | 2017-10-23 06:12:22 +0300 |
commit | a8dde37099558dc805dfa07eb870c2baf66f4fec (patch) | |
tree | ed96c31e202a5f8c7cebb3604144c0d414d361ab /src/adlmidi_load.cpp | |
parent | 490bac7421b5345e5b9035f1430520c751935534 (diff) | |
download | libADLMIDI-a8dde37099558dc805dfa07eb870c2baf66f4fec.tar.gz libADLMIDI-a8dde37099558dc805dfa07eb870c2baf66f4fec.tar.bz2 libADLMIDI-a8dde37099558dc805dfa07eb870c2baf66f4fec.zip |
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
Diffstat (limited to 'src/adlmidi_load.cpp')
-rw-r--r-- | src/adlmidi_load.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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(); |