diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2013-03-21 15:00:16 +0100 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2013-03-21 15:00:16 +0100 |
commit | 5492631d848bc90eb2be97619f88a3a6ab1479ad (patch) | |
tree | fc1c946f835882a656dbbd84718fd166662c7875 /gst/midi/midiparse.h | |
parent | 76080b78af779a12601a9d50440638ce789cf65c (diff) | |
download | gstreamer-plugins-bad-5492631d848bc90eb2be97619f88a3a6ab1479ad.tar.gz |
midiparse: Update duration
Rework things a bit so that we can run over the midi events and fire callbacks
for each of them. We can then use that for calculating the duration and also for
doing playback.
Only parse as many tracks as specified in the header.
Fix default tempo;
Send MIDI tick events every 10ms
Diffstat (limited to 'gst/midi/midiparse.h')
-rw-r--r-- | gst/midi/midiparse.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/midi/midiparse.h b/gst/midi/midiparse.h index bf0775f01..cc7b3796f 100644 --- a/gst/midi/midiparse.h +++ b/gst/midi/midiparse.h @@ -63,6 +63,7 @@ struct _GstMidiParse guint16 division; GList *tracks; + guint track_count; guint64 offset; GstAdapter *adapter; @@ -70,6 +71,7 @@ struct _GstMidiParse /* output data */ gboolean discont; GstSegment segment; + guint64 pulse; }; struct _GstMidiParseClass |