summaryrefslogtreecommitdiffstats
path: root/apps/settings.h
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2012-03-09 16:38:33 -0500
committerMichael Sevakis <jethead71@rockbox.org>2012-03-12 00:18:33 +0100
commitf6370726323c5e3351d23341be9fc0a5af950a67 (patch)
tree1a74e96a494f68cadddec9942b600c98bdd9bd49 /apps/settings.h
parent64bb720edf8a738685c9f0a18957a1b15e984cf6 (diff)
downloadrockbox-f6370726323c5e3351d23341be9fc0a5af950a67.tar.gz
rockbox-f6370726323c5e3351d23341be9fc0a5af950a67.tar.bz2
rockbox-f6370726323c5e3351d23341be9fc0a5af950a67.zip
Change EQ settings to use a struct array in global_settings.
The previous pseudo array access of separate members wasn't very nice or clear. Change-Id: I74a2b39bb9c71a1370a455c01c4d5a860765e040 Reviewed-on: http://gerrit.rockbox.org/179 Reviewed-by: Michael Sevakis <jethead71@rockbox.org> Tested-by: Michael Sevakis <jethead71@rockbox.org>
Diffstat (limited to 'apps/settings.h')
-rw-r--r--apps/settings.h33
1 files changed, 6 insertions, 27 deletions
diff --git a/apps/settings.h b/apps/settings.h
index ca0abaa202..a55ab0c8b6 100644
--- a/apps/settings.h
+++ b/apps/settings.h
@@ -340,33 +340,12 @@ struct user_settings
bool eq_enabled; /* Enable equalizer */
unsigned int eq_precut; /* dB */
- /* Order is important here, must be cutoff, q, then gain for each band.
- See dsp_set_eq_coefs in dsp.c for why. */
-
- /* Band 0 settings */
- int eq_band0_cutoff; /* Hz */
- int eq_band0_q;
- int eq_band0_gain; /* +/- dB */
-
- /* Band 1 settings */
- int eq_band1_cutoff; /* Hz */
- int eq_band1_q;
- int eq_band1_gain; /* +/- dB */
-
- /* Band 2 settings */
- int eq_band2_cutoff; /* Hz */
- int eq_band2_q;
- int eq_band2_gain; /* +/- dB */
-
- /* Band 3 settings */
- int eq_band3_cutoff; /* Hz */
- int eq_band3_q;
- int eq_band3_gain; /* +/- dB */
-
- /* Band 4 settings */
- int eq_band4_cutoff; /* Hz */
- int eq_band4_q;
- int eq_band4_gain; /* +/- dB */
+ struct eq_band_setting
+ {
+ int cutoff; /* Hz */
+ int q;
+ int gain; /* +/- dB */
+ } eq_band_settings[5];
/* Misc. swcodec */
int beep; /* system beep volume when changing tracks etc. */