Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  [Fixed] Replaygain, no album gain -> track gain fallback?
« previous next »
  • Print
Pages: [1]

Author Topic: [Fixed] Replaygain, no album gain -> track gain fallback?  (Read 1428 times)

Offline keyb_gr

  • Member
  • *
  • Posts: 40
[Fixed] Replaygain, no album gain -> track gain fallback?
« on: March 31, 2011, 05:59:15 AM »
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.
« Last Edit: April 01, 2011, 12:31:53 PM by keyb_gr »
Logged

Offline Buschel

  • Developer
  • Member
  • *
  • Posts: 190
Re: Replaygain, no album gain -> track gain fallback?
« Reply #1 on: March 31, 2011, 08:48:49 AM »
You are right. This bug was introduced with a rework of the replaygain stuff. Should be fixed with r29664.
Logged
iPod 5.5G 30GB, iPod nano 2G 8GB, 97% MPC and growing...
 

Offline keyb_gr

  • Member
  • *
  • Posts: 40
Re: Replaygain, no album gain -> track gain fallback?
« Reply #2 on: March 31, 2011, 03:02:55 PM »
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. :(
Logged

Offline Buschel

  • Developer
  • Member
  • *
  • Posts: 190
Re: Replaygain, no album gain -> track gain fallback?
« Reply #3 on: March 31, 2011, 05:59:46 PM »
Seems like I have overseen an impact of my change... Please use r29665.
Logged
iPod 5.5G 30GB, iPod nano 2G 8GB, 97% MPC and growing...
 

Offline keyb_gr

  • Member
  • *
  • Posts: 40
Re: Replaygain, no album gain -> track gain fallback?
« Reply #4 on: April 01, 2011, 05:23:10 AM »
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. :)
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  [Fixed] Replaygain, no album gain -> track gain fallback?
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.061 seconds with 15 queries.