Support and General Use > Audio Playback, Database and Playlists

[Fixed] Replaygain, no album gain -> track gain fallback?

(1/1)

keyb_gr:
I have some MP3/MP4 files on my ClipV2 which are tagged with track gain but not album gain since they are, well, single files. (Some best-of compilations can be all over the place in terms of levels, too, so album gain makes little sense for those.) If I then set up Replaygain for "album gain" or "track gain when shuffling", no RG will be applied at all, or to be precise: a 0 dB gain. That's annoying if it's one of those nasty tracks calling for -10 dB.

Now I could be wrong, but I do think that I tested RG functionality at some point, and that there was a fallback to track gain if no album gain was available. There definitely isn't with a current build (currently r29659). Or maybe I got that mixed up with Foobar2k, which does implement it? ??? Would be nice to have then.

Can anyone shed some light on this? Wading through SVN, I did find /apps/replaygain.c, but was unable to determine where RG information is actually being used / applied.

Interestingly enough, the "Prevent Clipping" function works in any case, but then it may be based on track peak in the first place.

Buschel:
You are right. This bug was introduced with a rework of the replaygain stuff. Should be fixed with r29664.

keyb_gr:
Thanks for the fast reply and fix. :)

Unfortunately this build is totally non-working for me - Divide by zero at 30064DEC, even with an all-new Rockbox dir. It does seem booted up pretty far at this point, since it says "scanning files" just before the crash.

I have no other build between 29659 and 29664 here that I could test. :(

Buschel:
Seems like I have overseen an impact of my change... Please use r29665.

keyb_gr:
r29666 does work a lot better indeed, in spite of the evil number. ;)

The fallback seems to be working as intended. :) Looking at what's changed, it is now happening about where I'd have expected it in the first place (though I'm still not sure how exactly it achieves the desired effect). The first "fix" was looking a bit too much like black magic... ;)

Anyway, great to see this fixed so quickly. You guys officially rock. :)

Navigation

[0] Message Index

Go to full version