]> git.sesse.net Git - vlc/blob - modules/audio_filter/equalizer_presets.h
Update NEWS, LIST and po for DASH
[vlc] / modules / audio_filter / equalizer_presets.h
1 /*****************************************************************************
2  * equalizer_presets.h:
3  *****************************************************************************
4  * Copyright (C) 2004 the VideoLAN team
5  * $Id$
6  *
7  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
8  *
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.
13  *
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.
18  *
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  *****************************************************************************/
23
24 /*****************************************************************************
25  * Equalizer presets
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.
29  */
30
31 #define EQZ_BANDS_MAX 10
32
33 #define NB_PRESETS 18
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"
38 };
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"),
44 };
45
46 typedef struct
47 {
48     const char psz_name[16];
49     int  i_band;
50     float f_preamp;
51     float f_amp[EQZ_BANDS_MAX];
52 } eqz_preset_t;
53
54 static const eqz_preset_t eqz_preset_10b[NB_PRESETS] =
55 {
56     {
57         "flat", 10, 12.0,
58         { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 },
59     },
60     {
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 }
64     },
65     {
66         "club", 10, 6.0,
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 }
69     },
70     {
71         "dance", 10, 5.0,
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 }
74     },
75     {
76         "fullbass", 10, 5.0,
77         { -8, 9.6, 9.6, 5.6, 1.6, -4, -8, -10.4, -11.2, -11.2  }
78     },
79     {
80         "fullbasstreble", 10, 4.0,
81         { 7.2, 5.6, -1.11022e-15, -7.2, -4.8, 1.6, 8, 11.2, 12, 12 }
82     },
83     {
84         "fulltreble", 10, 3.0,
85         { -9.6, -9.6, -9.6, -4, 2.4, 11.2, 16, 16, 16, 16.8 }
86     },
87     {
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 }
90     },
91     {
92         "largehall", 10, 5.0,
93         { 10.4, 10.4, 5.6, 5.6, -1.11022e-15, -4.8, -4.8, -4.8, -1.11022e-15,
94           -1.11022e-15 }
95     },
96     {
97         "live", 10, 7.0,
98         { -4.8, -1.11022e-15, 4, 5.6, 5.6, 5.6, 4, 2.4, 2.4, 2.4 }
99     },
100     {
101         "party", 10, 6.0,
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 }
104     },
105     {
106         "pop", 10, 6.0,
107         { -1.6, 4.8, 7.2, 8, 5.6, -1.11022e-15, -2.4, -2.4, -1.6, -1.6 }
108     },
109     {
110         "reggae", 10, 8.0,
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 }
113     },
114     {
115         "rock", 10, 5.0,
116         { 8, 4.8, -5.6, -8, -3.2, 4, 8.8, 11.2, 11.2, 11.2 }
117     },
118     {
119         "ska", 10, 6.0,
120         { -2.4, -4.8, -4, -1.11022e-15, 4, 5.6, 8.8, 9.6, 11.2, 9.6 }
121     },
122     {
123         "soft", 10, 5.0,
124         { 4.8, 1.6, -1.11022e-15, -2.4, -1.11022e-15, 4, 8, 9.6, 11.2, 12 }
125     },
126     {
127         "softrock", 10, 7.0,
128         { 4, 4, 2.4, -1.11022e-15, -4, -5.6, -3.2, -1.11022e-15, 2.4, 8.8 }
129     },
130     {
131         "techno", 10, 5.0,
132         { 8, 5.6, -1.11022e-15, -5.6, -4.8, -1.11022e-15, 8, 9.6, 9.6, 8.8 }
133     },
134 };