1 /*****************************************************************************
3 *****************************************************************************
4 * Copyright (C) 2004 the VideoLAN team
7 * Authors: Laurent Aimar <fenrir@via.ecp.fr>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22 *****************************************************************************/
24 /*****************************************************************************
26 *****************************************************************************/
27 /* Equalizer presets values are in this file instead of equalizer.c, so you can
28 * get these values even if the equalizer is not enabled.
31 #define EQZ_BANDS_MAX 10
34 static const char *const preset_list[NB_PRESETS] = {
35 "flat", "classical", "club", "dance", "fullbass", "fullbasstreble",
36 "fulltreble", "headphones","largehall", "live", "party", "pop", "reggae",
37 "rock", "ska", "soft", "softrock", "techno"
39 static const char *const preset_list_text[NB_PRESETS] = {
40 N_("Flat"), N_("Classical"), N_("Club"), N_("Dance"), N_("Full bass"),
41 N_("Full bass and treble"), N_("Full treble"), N_("Headphones"),
42 N_("Large Hall"), N_("Live"), N_("Party"), N_("Pop"), N_("Reggae"),
43 N_("Rock"), N_("Ska"), N_("Soft"), N_("Soft rock"), N_("Techno"),
48 const char psz_name[16];
51 float f_amp[EQZ_BANDS_MAX];
54 static const eqz_preset_t eqz_preset_10b[NB_PRESETS] =
58 { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 },
61 "classical", 10, 12.0,
62 { -1.11022e-15, -1.11022e-15, -1.11022e-15, -1.11022e-15,
63 -1.11022e-15, -1.11022e-15, -7.2, -7.2, -7.2, -9.6 }
67 { -1.11022e-15, -1.11022e-15, 8, 5.6, 5.6, 5.6, 3.2, -1.11022e-15,
68 -1.11022e-15, -1.11022e-15 }
72 { 9.6, 7.2, 2.4, -1.11022e-15, -1.11022e-15, -5.6, -7.2, -7.2,
73 -1.11022e-15, -1.11022e-15 }
77 { -8, 9.6, 9.6, 5.6, 1.6, -4, -8, -10.4, -11.2, -11.2 }
80 "fullbasstreble", 10, 4.0,
81 { 7.2, 5.6, -1.11022e-15, -7.2, -4.8, 1.6, 8, 11.2, 12, 12 }
84 "fulltreble", 10, 3.0,
85 { -9.6, -9.6, -9.6, -4, 2.4, 11.2, 16, 16, 16, 16.8 }
88 "headphones", 10, 4.0,
89 { 4.8, 11.2, 5.6, -3.2, -2.4, 1.6, 4.8, 9.6, 12.8, 14.4 }
93 { 10.4, 10.4, 5.6, 5.6, -1.11022e-15, -4.8, -4.8, -4.8, -1.11022e-15,
98 { -4.8, -1.11022e-15, 4, 5.6, 5.6, 5.6, 4, 2.4, 2.4, 2.4 }
102 { 7.2, 7.2, -1.11022e-15, -1.11022e-15, -1.11022e-15, -1.11022e-15,
103 -1.11022e-15, -1.11022e-15, 7.2, 7.2 }
107 { -1.6, 4.8, 7.2, 8, 5.6, -1.11022e-15, -2.4, -2.4, -1.6, -1.6 }
111 { -1.11022e-15, -1.11022e-15, -1.11022e-15, -5.6, -1.11022e-15, 6.4,
112 6.4, -1.11022e-15, -1.11022e-15, -1.11022e-15 }
116 { 8, 4.8, -5.6, -8, -3.2, 4, 8.8, 11.2, 11.2, 11.2 }
120 { -2.4, -4.8, -4, -1.11022e-15, 4, 5.6, 8.8, 9.6, 11.2, 9.6 }
124 { 4.8, 1.6, -1.11022e-15, -2.4, -1.11022e-15, 4, 8, 9.6, 11.2, 12 }
128 { 4, 4, 2.4, -1.11022e-15, -4, -5.6, -3.2, -1.11022e-15, 2.4, 8.8 }
132 { 8, 5.6, -1.11022e-15, -5.6, -4.8, -1.11022e-15, 8, 9.6, 9.6, 8.8 }