From 69e708772539717d40b8e079528b523ba3ff4cdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Stadler?= Date: Mon, 12 Feb 2007 10:50:20 +0000 Subject: [PATCH] API: add GST_TAG_REFERENCE_LEVEL (#403597). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Original commit message from CVS: Patch by: René Stadler * docs/gst/gstreamer-sections.txt: * gst/gsttaglist.c: (_gst_tag_initialize): * gst/gsttaglist.h: API: add GST_TAG_REFERENCE_LEVEL (#403597). --- ChangeLog | 10 +++++++++- docs/gst/gstreamer-sections.txt | 1 + gst/gsttaglist.c | 3 +++ gst/gsttaglist.h | 10 +++++++++- 4 files changed, 22 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 93c7c15560..ecd9d1d54b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2007-02-09 Tim-Philipp Müller + + Patch by: René Stadler + + * docs/gst/gstreamer-sections.txt: + * gst/gsttaglist.c: (_gst_tag_initialize): + * gst/gsttaglist.h: + API: add GST_TAG_REFERENCE_LEVEL (#403597). + 2007-02-11 Stefan Kost * docs/libs/Makefile.am: @@ -17,7 +26,6 @@ (gst_controlled_property_new): Document more. - 2007-02-10 Sébastien Moutte * gst/gstbin.h:(gst_bin_get_by_interface), diff --git a/docs/gst/gstreamer-sections.txt b/docs/gst/gstreamer-sections.txt index 9aa05ebfa1..5ae7c911c6 100644 --- a/docs/gst/gstreamer-sections.txt +++ b/docs/gst/gstreamer-sections.txt @@ -1835,6 +1835,7 @@ GST_TAG_TRACK_GAIN GST_TAG_TRACK_PEAK GST_TAG_ALBUM_GAIN GST_TAG_ALBUM_PEAK +GST_TAG_REFERENCE_LEVEL GST_TAG_LANGUAGE_CODE GST_TAG_IMAGE GST_TAG_PREVIEW_IMAGE diff --git a/gst/gsttaglist.c b/gst/gsttaglist.c index b29542130c..b4ec3d868f 100644 --- a/gst/gsttaglist.c +++ b/gst/gsttaglist.c @@ -206,6 +206,9 @@ _gst_tag_initialize (void) G_TYPE_DOUBLE, _("replaygain album gain"), _("album gain in db"), NULL); gst_tag_register (GST_TAG_ALBUM_PEAK, GST_TAG_FLAG_META, G_TYPE_DOUBLE, _("replaygain album peak"), _("peak of the album"), NULL); + gst_tag_register (GST_TAG_REFERENCE_LEVEL, GST_TAG_FLAG_META, + G_TYPE_DOUBLE, _("replaygain reference level"), + _("reference level of track and album gain values"), NULL); gst_tag_register (GST_TAG_LANGUAGE_CODE, GST_TAG_FLAG_META, G_TYPE_STRING, _("language code"), _("language code for this stream, conforming to ISO-639-1"), NULL); diff --git a/gst/gsttaglist.h b/gst/gsttaglist.h index ce48791728..a4de5f410c 100644 --- a/gst/gsttaglist.h +++ b/gst/gsttaglist.h @@ -560,6 +560,14 @@ gboolean gst_tag_list_get_date_index (const GstTagList * list, * peak of the album (double) */ #define GST_TAG_ALBUM_PEAK "replaygain-album-peak" +/** + * GST_TAG_REFERENCE_LEVEL: + * + * reference level of track and album gain values (double) + * + * Since: 0.10.12 + */ +#define GST_TAG_REFERENCE_LEVEL "replaygain-reference-level" /** * GST_TAG_LANGUAGE_CODE: * @@ -586,7 +594,7 @@ gboolean gst_tag_list_get_date_index (const GstTagList * list, /** * GST_TAG_BEATS_PER_MINUTE: * - * number of beats per minute in audio + * number of beats per minute in audio (double) * * Since: 0.10.12 */