diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2009-09-24 20:39:54 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2009-09-24 20:39:54 +0200 |
commit | 9d4947ccc83b5a3efaf5307991b6f8a08a53f02c (patch) | |
tree | 4ab4277d38c0a04a8e38a0a77683ab9f70e5301d /plugins | |
parent | b637eba3c6940a93bcbbadc0f753be4045220f18 (diff) |
vorbis replay gain support
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/vorbis/vorbis.c | 12 |
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) { |