GstAudioTempoContext

From Buzztrax

Revision as of 14:05, 5 January 2015 by Ensonic (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The tempo interface is used to provide beats-per-minute, ticks-per-beat and subticks-per-tick from the application to the gstreamer elements. The source elements needs this to configure the buffersize. Other elements need this to convert parameters (e.g. note-length or delays-length) that are tempo locked.

Instead of the interface we could implement a GstContext. GStreamer already has custom context code for GL elements:

Besides the elements in gst-buzztrax we could also use this to improve:

We could implement this for gst-plugins-base/gst-libs/gst/audio/ as audiotempocontext.{c,h}:

#define GST_AUDIO_TEMPO_CONTEXT_BPM "gst.audio.tempo.beats-per-minute"
#define GST_AUDIO_TEMPO_CONTEXT_TPB "gst.audio.tempo.ticks-per-beat"
#define GST_AUDIO_TEMPO_CONTEXT_STPT "gst.audio.tempo.subticks-per-tick"

We could also move convenience code that calculates buffersizes over:

Support Us

Collaboration

GStreamer Logo
Become a Friend of GNOME
Linux Sound Logo
MediaWiki
Valgrind
GNU Library Public Licence
GNU Free Documentation License 1.2