From 721644986bb9a5f26bc29f40933ad05ae0d712a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Wed, 3 May 2006 13:20:41 +0000 Subject: Everybody loves docs - add docs for musicbrainz plugin. Original commit message from CVS: * docs/plugins/Makefile.am: * docs/plugins/gst-plugins-bad-plugins-docs.sgml: * docs/plugins/gst-plugins-bad-plugins-sections.txt: * docs/plugins/gst-plugins-bad-plugins.hierarchy: * docs/plugins/inspect/plugin-musicbrainz.xml: * ext/musicbrainz/gsttrm.c: * ext/musicbrainz/gsttrm.h: Everybody loves docs - add docs for musicbrainz plugin. --- ext/musicbrainz/gsttrm.c | 36 ++++++++++++++++++++++++++++++++++++ ext/musicbrainz/gsttrm.h | 8 ++++++++ 2 files changed, 44 insertions(+) (limited to 'ext/musicbrainz') diff --git a/ext/musicbrainz/gsttrm.c b/ext/musicbrainz/gsttrm.c index 90e93962..4732d73f 100644 --- a/ext/musicbrainz/gsttrm.c +++ b/ext/musicbrainz/gsttrm.c @@ -18,6 +18,42 @@ * Boston, MA 02111-1307, USA. */ +/** + * SECTION:element-trm + * + * + * + * GstTRM computes MusicBrainz + * TRM identifiers for audio streams using libmusicbrainz. + * + * + * A TRM identifier is something like an 'acoustic fingerprint', the aim is + * to uniquely identify the same song regardless of which source it comes from + * or which audio format the stream is in. + * + * + * The TRM element will collect about 30 seconds of audio and let + * libmusicbrainz calculate a preliminary audio signature from that. That audio + * signature will then be sent over the internet to a musicbrainz.org server + * which will calculate the TRM for that signature. + * + * + * The TRM element will post a tag message with a #GST_TAG_MUSICBRAINZ_TRMID + * tag on the bus once the TRM has been calculated (and also send a tag event + * with that information downstream). + * + * Example pipeline + * + * Here is a test pipeline to test the TRM element: + * + * gst-launch -m filesrc location=somefile.ogg ! decodebin ! audioconvert ! trm ! fakesink + * + * this should (among many other things) print the tag message with the TRM ID. + * + * + */ + + #ifdef HAVE_CONFIG_H #include "config.h" #endif diff --git a/ext/musicbrainz/gsttrm.h b/ext/musicbrainz/gsttrm.h index 9194180c..d66e3567 100644 --- a/ext/musicbrainz/gsttrm.h +++ b/ext/musicbrainz/gsttrm.h @@ -38,9 +38,17 @@ G_BEGIN_DECLS typedef struct _GstTRM GstTRM; typedef struct _GstTRMClass GstTRMClass; +/** + * GstTRM + * + * GStreamer TRM element. This structure is opaque (private). + * + **/ + struct _GstTRM { GstElement element; + /*< private >*/ GstPad *sinkpad; GstPad *srcpad; -- cgit v1.2.1