summaryrefslogtreecommitdiff
path: root/plugins/vorbis/vorbis.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-09-24 20:39:54 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-09-24 20:39:54 +0200
commit9d4947ccc83b5a3efaf5307991b6f8a08a53f02c (patch)
tree4ab4277d38c0a04a8e38a0a77683ab9f70e5301d /plugins/vorbis/vorbis.c
parentb637eba3c6940a93bcbbadc0f753be4045220f18 (diff)
vorbis replay gain support
Diffstat (limited to 'plugins/vorbis/vorbis.c')
-rw-r--r--plugins/vorbis/vorbis.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/vorbis/vorbis.c b/plugins/vorbis/vorbis.c
index bb778304..b854356a 100644
--- a/plugins/vorbis/vorbis.c
+++ b/plugins/vorbis/vorbis.c
@@ -202,6 +202,18 @@ cvorbis_insert (DB_playItem_t *after, const char *fname) {
else if (!strncasecmp (vc->user_comments[i], "date=", 5)) {
deadbeef->pl_add_meta (it, "date", vc->user_comments[i] + 5);
}
+ else if (!strncasecmp (vc->user_comments[i], "replaygain_album_gain=", 22)) {
+ it->replaygain_album_gain = atof (vc->user_comments[i] + 22);
+ }
+ else if (!strncasecmp (vc->user_comments[i], "replaygain_album_peak=", 22)) {
+ it->replaygain_album_peak = atof (vc->user_comments[i] + 22);
+ }
+ else if (!strncasecmp (vc->user_comments[i], "replaygain_track_gain=", 22)) {
+ it->replaygain_track_gain = atof (vc->user_comments[i] + 22);
+ }
+ else if (!strncasecmp (vc->user_comments[i], "replaygain_track_peak=", 22)) {
+ it->replaygain_track_peak = atof (vc->user_comments[i] + 22);
+ }
}
}
if (!title_added) {