1 /*****************************************************************************
3 *****************************************************************************
4 * Copyright (C) 2004 VLC authors and VideoLAN
7 * Authors: Laurent Aimar <fenrir@via.ecp.fr>
9 * This program is free software; you can redistribute it and/or modify it it
10 * under the terms of the GNU Lesser General Public License as published by
11 * the Free Software Foundation; either version 2.1 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 Lesser General Public License for more details.
19 * You should have received a copy of the GNU Lesser General Public License
20 * along with this program; if not, write to the Free Software Foundation, Foundation,
21 * 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.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f },
61 "classical", 10, 12.0f,
62 { -1.11022e-15f, -1.11022e-15f, -1.11022e-15f, -1.11022e-15f,
63 -1.11022e-15f, -1.11022e-15f, -7.2f, -7.2f, -7.2f, -9.6f }
67 { -1.11022e-15f, -1.11022e-15f, 8.0f, 5.6f, 5.6f, 5.6f, 3.2f,
68 -1.11022e-15f, -1.11022e-15f, -1.11022e-15f }
72 { 9.6f, 7.2f, 2.4f, -1.11022e-15f, -1.11022e-15f, -5.6f, -7.2f, -7.2f,
73 -1.11022e-15f, -1.11022e-15f }
77 { -8.0f, 9.6f, 9.6f, 5.6f, 1.6f, -4.0f, -8.0f, -10.4f, -11.2f, -11.2f }
80 "fullbasstreble", 10, 4.0f,
81 { 7.2f, 5.6f, -1.11022e-15f, -7.2f, -4.8f, 1.6f, 8.0f, 11.2f,
85 "fulltreble", 10, 3.0f,
86 { -9.6f, -9.6f, -9.6f, -4.0f, 2.4f, 11.2f, 16.0f, 16.0f, 16.0f, 16.8f }
89 "headphones", 10, 4.0f,
90 { 4.8f, 11.2f, 5.6f, -3.2f, -2.4f, 1.6f, 4.8f, 9.6f, 12.8f, 14.4f }
93 "largehall", 10, 5.0f,
94 { 10.4f, 10.4f, 5.6f, 5.6f, -1.11022e-15f, -4.8f, -4.8f, -4.8f,
95 -1.11022e-15f, -1.11022e-15f }
99 { -4.8f, -1.11022e-15f, 4.0f, 5.6f, 5.6f, 5.6f, 4.0f, 2.4f,
104 { 7.2f, 7.2f, -1.11022e-15f, -1.11022e-15f, -1.11022e-15f,
105 -1.11022e-15f, -1.11022e-15f, -1.11022e-15f, 7.2f, 7.2f }
109 { -1.6f, 4.8f, 7.2f, 8.0f, 5.6f, -1.11022e-15f, -2.4f, -2.4f,
114 { -1.11022e-15f, -1.11022e-15f, -1.11022e-15f, -5.6f, -1.11022e-15f,
115 6.4f, 6.4f, -1.11022e-15f, -1.11022e-15f, -1.11022e-15f }
119 { 8.0f, 4.8f, -5.6f, -8.0f, -3.2f, 4.0f, 8.8f, 11.2f, 11.2f, 11.2f }
123 { -2.4f, -4.8f, -4.0f, -1.11022e-15f, 4.0f, 5.6f, 8.8f, 9.6f,
128 { 4.8f, 1.6f, -1.11022e-15f, -2.4f, -1.11022e-15f, 4.0f, 8.0f, 9.6f,
132 "softrock", 10, 7.0f,
133 { 4.0f, 4.0f, 2.4f, -1.11022e-15f, -4.0f, -5.6f, -3.2f, -1.11022e-15f,
138 { 8.0f, 5.6f, -1.11022e-15f, -5.6f, -4.8f, -1.11022e-15f, 8.0f, 9.6f,