ref: c7ec663a0bf490169a910a3bba6ff5ba094a4b4e
parent: bb628108912343bf6c907a347dae7dbeac9535e8
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Sat Oct 15 14:59:11 EDT 2022
libtags: pick R128 gain
--- a/sys/src/cmd/audio/libtags/vorbis.c
+++ b/sys/src/cmd/audio/libtags/vorbis.c
@@ -20,11 +20,11 @@
txtcb(ctx, Tdate, k, v);
else if(cistrcmp(k, "replaygain_track_peak") == 0)
txtcb(ctx, Ttrackpeak, k, v);
- else if(cistrcmp(k, "replaygain_track_gain") == 0)
+ else if(cistrcmp(k, "replaygain_track_gain") == 0 || cistrcmp(k, "r128_track_gain") == 0)
txtcb(ctx, Ttrackgain, k, v);
else if(cistrcmp(k, "replaygain_album_peak") == 0)
txtcb(ctx, Talbumpeak, k, v);
- else if(cistrcmp(k, "replaygain_album_gain") == 0)
+ else if(cistrcmp(k, "replaygain_album_gain") == 0 || cistrcmp(k, "r128_album_gain") == 0)
txtcb(ctx, Talbumgain, k, v);
else if(cistrcmp(k, "genre") == 0)
txtcb(ctx, Tgenre, k, v);