mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
Make DSP's replaygain independent of global_settings.
Moves replaygain definitions to lib/rbcodec/dsp/dsp_misc.h. Intermediate functions in misc.c handle any adjustment and calling the rbcodec APIs. Change-Id: I9f03561bca9aedd13760cf19c4e19aa3c68e7024 Reviewed-on: http://gerrit.rockbox.org/140 Reviewed-by: Michael Sevakis <jethead71@rockbox.org>
This commit is contained in:
parent
a32cbf3346
commit
57a20d2d63
11 changed files with 129 additions and 80 deletions
|
|
@ -117,9 +117,6 @@ enum { SORT_INTERPRET_AS_DIGIT, SORT_INTERPRET_AS_NUMBER };
|
|||
/* recursive dir insert options */
|
||||
enum { RECURSE_OFF, RECURSE_ON, RECURSE_ASK };
|
||||
|
||||
/* replaygain types */
|
||||
enum { REPLAYGAIN_TRACK = 0, REPLAYGAIN_ALBUM, REPLAYGAIN_SHUFFLE, REPLAYGAIN_OFF };
|
||||
|
||||
/* show path types */
|
||||
enum { SHOW_PATH_OFF = 0, SHOW_PATH_CURRENT, SHOW_PATH_FULL };
|
||||
|
||||
|
|
@ -325,10 +322,7 @@ struct user_settings
|
|||
#endif
|
||||
|
||||
/* Replaygain */
|
||||
bool replaygain_noclip; /* scale to prevent clips */
|
||||
int replaygain_type; /* 0=track gain, 1=album gain, 2=track gain if
|
||||
shuffle is on, album gain otherwise, 4=off */
|
||||
int replaygain_preamp; /* scale replaygained tracks by this */
|
||||
struct replaygain_settings replaygain_settings;
|
||||
|
||||
/* Crossfeed */
|
||||
bool crossfeed; /* enable crossfeed */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue