Commit 3aaa423f authored by Jeremy Simon's avatar Jeremy Simon
Browse files

Add replaygain tag

Original commit message from CVS:
Add replaygain tag
parent 60bf7ab3
2004-01-18 Jeremy Simon <jesimon@libertysurf.fr>
* gst/gsttag.c: (_gst_tag_initialize):
* gst/gsttag.h:
Add replaygain tag
2004-01-18 Colin Walters <walters@verbum.org>
* examples/retag/retag.c: Call gst_init before processing
......
......@@ -166,6 +166,26 @@ _gst_tag_initialize (void)
_("maximum bitrate"),
_("maximum bitrate in bits/s"),
NULL);
gst_tag_register (GST_TAG_TRACK_GAIN,
G_TYPE_DOUBLE,
_("replaygain track gain"),
_("track gain in db"),
NULL);
gst_tag_register (GST_TAG_TRACK_PEAK,
G_TYPE_DOUBLE,
_("replaygain track peak"),
_("peak of the track"),
NULL);
gst_tag_register (GST_TAG_ALBUM_GAIN,
G_TYPE_DOUBLE,
_("replaygain album gain"),
_("album gain in db"),
NULL);
gst_tag_register (GST_TAG_ALBUM_PEAK,
G_TYPE_DOUBLE,
_("replaygain album peak"),
_("peak of the album"),
NULL);
}
/**
* gst_tag_merge_use_first:
......
......@@ -235,6 +235,10 @@ GstTagList * gst_event_tag_get_list (GstEvent * tag_event);
#define GST_TAG_BITRATE "bitrate"
#define GST_TAG_MINIMUM_BITRATE "minimum-bitrate"
#define GST_TAG_MAXIMUM_BITRATE "maximum-bitrate"
#define GST_TAG_TRACK_GAIN "replaygain_track_gain"
#define GST_TAG_TRACK_PEAK "replaygain_track_peak"
#define GST_TAG_ALBUM_GAIN "replaygain_album_gain"
#define GST_TAG_ALBUM_PEAK "replaygain_album_peak"
G_END_DECLS
......
......@@ -166,6 +166,26 @@ _gst_tag_initialize (void)
_("maximum bitrate"),
_("maximum bitrate in bits/s"),
NULL);
gst_tag_register (GST_TAG_TRACK_GAIN,
G_TYPE_DOUBLE,
_("replaygain track gain"),
_("track gain in db"),
NULL);
gst_tag_register (GST_TAG_TRACK_PEAK,
G_TYPE_DOUBLE,
_("replaygain track peak"),
_("peak of the track"),
NULL);
gst_tag_register (GST_TAG_ALBUM_GAIN,
G_TYPE_DOUBLE,
_("replaygain album gain"),
_("album gain in db"),
NULL);
gst_tag_register (GST_TAG_ALBUM_PEAK,
G_TYPE_DOUBLE,
_("replaygain album peak"),
_("peak of the album"),
NULL);
}
/**
* gst_tag_merge_use_first:
......
......@@ -235,6 +235,10 @@ GstTagList * gst_event_tag_get_list (GstEvent * tag_event);
#define GST_TAG_BITRATE "bitrate"
#define GST_TAG_MINIMUM_BITRATE "minimum-bitrate"
#define GST_TAG_MAXIMUM_BITRATE "maximum-bitrate"
#define GST_TAG_TRACK_GAIN "replaygain_track_gain"
#define GST_TAG_TRACK_PEAK "replaygain_track_peak"
#define GST_TAG_ALBUM_GAIN "replaygain_album_gain"
#define GST_TAG_ALBUM_PEAK "replaygain_album_peak"
G_END_DECLS
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment