summaryrefslogtreecommitdiff
path: root/src/midifile.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/midifile.h')
-rw-r--r--src/midifile.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/midifile.h b/src/midifile.h
index faef549c..4ee0ddb2 100644
--- a/src/midifile.h
+++ b/src/midifile.h
@@ -155,6 +155,10 @@ unsigned int MIDI_NumTracks(midi_file_t *file);
midi_track_iter_t *MIDI_IterateTrack(midi_file_t *file, unsigned int track_num);
+// Free an iterator.
+
+void MIDI_FreeIterator(midi_track_iter_t *iter);
+
// Get the time until the next MIDI event in a track.
unsigned int MIDI_GetDeltaTime(midi_track_iter_t *iter);
@@ -163,5 +167,9 @@ unsigned int MIDI_GetDeltaTime(midi_track_iter_t *iter);
int MIDI_GetNextEvent(midi_track_iter_t *iter, midi_event_t **event);
+// Reset an iterator to the beginning of a track.
+
+void MIDI_RestartIterator(midi_track_iter_t *iter);
+
#endif /* #ifndef MIDIFILE_H */