summaryrefslogtreecommitdiff
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.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
340 bool eq_enabled; /* Enable equalizer */ 340 bool eq_enabled; /* Enable equalizer */
341 unsigned int eq_precut; /* dB */ 341 unsigned int eq_precut; /* dB */
342 342
343 /* Order is important here, must be cutoff, q, then gain for each band. 343 struct eq_band_setting
344 See dsp_set_eq_coefs in dsp.c for why. */ 344 {
345 345 int cutoff; /* Hz */
346 /* Band 0 settings */ 346 int q;
347 int eq_band0_cutoff; /* Hz */ 347 int gain; /* +/- dB */
348 int eq_band0_q; 348 } eq_band_settings[5];
349 int eq_band0_gain; /* +/- dB */
350
351 /* Band 1 settings */
352 int eq_band1_cutoff; /* Hz */
353 int eq_band1_q;
354 int eq_band1_gain; /* +/- dB */
355
356 /* Band 2 settings */
357 int eq_band2_cutoff; /* Hz */
358 int eq_band2_q;
359 int eq_band2_gain; /* +/- dB */
360
361 /* Band 3 settings */
362 int eq_band3_cutoff; /* Hz */
363 int eq_band3_q;
364 int eq_band3_gain; /* +/- dB */
365
366 /* Band 4 settings */
367 int eq_band4_cutoff; /* Hz */
368 int eq_band4_q;
369 int eq_band4_gain; /* +/- dB */
370 349
371 /* Misc. swcodec */ 350 /* Misc. swcodec */
372 int beep; /* system beep volume when changing tracks etc. */ 351 int beep; /* system beep volume when changing tracks etc. */