summaryrefslogtreecommitdiffstats
path: root/apps/settings.h
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2012-04-30 16:27:01 -0400
committerMichael Sevakis <jethead71@rockbox.org>2012-04-30 22:47:37 +0200
commit57a20d2d638895fffe88a23cbd2960f1102b292f (patch)
treedf1943429ec040a18d854fa0a0091051e4200304 /apps/settings.h
parenta32cbf33465367cd6fe36d636da8d03485e9d15d (diff)
downloadrockbox-57a20d2d638895fffe88a23cbd2960f1102b292f.tar.gz
rockbox-57a20d2d638895fffe88a23cbd2960f1102b292f.tar.bz2
rockbox-57a20d2d638895fffe88a23cbd2960f1102b292f.zip
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>
Diffstat (limited to 'apps/settings.h')
-rw-r--r--apps/settings.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/apps/settings.h b/apps/settings.h
index 071346864c..34cc75b116 100644
--- a/apps/settings.h
+++ b/apps/settings.h
@@ -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 */