Description
This element renders midi-files as audio streams using
Timidity.
Example pipeline
This example pipeline will parse the midi and render to raw audio which is
played via alsa.
Types and Values
struct GstTimidity
struct GstTimidity {
GstElement element;
GstPad *sinkpad, *srcpad;
gboolean initialized;
/* input stream properties */
gint64 mididata_size, mididata_offset;
gchar *mididata;
gboolean mididata_filled;
MidSong *song;
/* output data */
gboolean o_new_segment, o_segment_changed, o_seek;
GstSegment o_segment[1];
gint64 o_len;
/* format of the stream */
MidSongOptions song_options[1];
gint64 bytes_per_frame;
GstClockTime time_per_frame;
GstCaps *out_caps;
};