This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#10356 - Merge the "Replaygain Off" option into the replaygain type; eliminate the "On/Off" setting
Attached to Project:
Rockbox
Opened by Alexander Levin (fml2) - Saturday, 20 June 2009, 19:25 GMT+2
Last edited by Alexander Levin (fml2) - Sunday, 21 June 2009, 11:02 GMT+2
Opened by Alexander Levin (fml2) - Saturday, 20 June 2009, 19:25 GMT+2
Last edited by Alexander Levin (fml2) - Sunday, 21 June 2009, 11:02 GMT+2
|
DetailsThis patch adds a new replaygain type "off" and eliminates the menu setting "Enable replaygain". I hope I got it right :-)
|
This task depends upon
Closed by Alexander Levin (fml2)
Sunday, 21 June 2009, 11:02 GMT+2
Reason for closing: Accepted
Additional comments about closing: Committed in r21414. Close the task to not forget to do it later; reopen or submit bug reports if some are found.
Sunday, 21 June 2009, 11:02 GMT+2
Reason for closing: Accepted
Additional comments about closing: Committed in r21414. Close the task to not forget to do it later; reopen or submit bug reports if some are found.
Minor nitpicking: REPLAYGAIN_OFF could be == 0 as it makes slightly more sense, but that doesn't actually change anything.
Looking at the patch, it looks fine.
There's a slightly different thing that caught my attention (but isn't an issue of / should addressed with this patch): why is the type enum unnamed and the replaygain_type in the settings struct declared as int? Using a named enum instead would allow the compiler to warn if you use a value outside of the enum. Or did I miss any reason for using an int here?
As to the usage of the enum: IIUC, it's used just to defined some int values. Some #define's could have been used as well. And I believe to have seen some code that uses a negative values as an indicator of some special condition which is then translated to some other value.