]> git.sesse.net Git - vlc/blob - modules/audio_filter/equalizer_presets.h
demux: fix path extension on non-local inputs (fixes #8115)
[vlc] / modules / audio_filter / equalizer_presets.h
1 /*****************************************************************************
2  * equalizer_presets.h:
3  *****************************************************************************
4  * Copyright (C) 2004 VLC authors and VideoLAN
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 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.
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 Lesser General Public License for more details.
18  *
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  *****************************************************************************/
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.0f,
58         { 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f },
59     },
60     {
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 }
64     },
65     {
66         "club", 10, 6.0f,
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 }
69     },
70     {
71         "dance", 10, 5.0f,
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 }
74     },
75     {
76         "fullbass", 10, 5.0f,
77         { -8.0f, 9.6f, 9.6f, 5.6f, 1.6f, -4.0f, -8.0f, -10.4f, -11.2f, -11.2f }
78     },
79     {
80         "fullbasstreble", 10, 4.0f,
81         { 7.2f, 5.6f, -1.11022e-15f, -7.2f, -4.8f, 1.6f, 8.0f, 11.2f,
82           12.0f, 12.0f }
83     },
84     {
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 }
87     },
88     {
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 }
91     },
92     {
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 }
96     },
97     {
98         "live", 10, 7.0f,
99         { -4.8f, -1.11022e-15f, 4.0f, 5.6f, 5.6f, 5.6f, 4.0f, 2.4f,
100           2.4f, 2.4f }
101     },
102     {
103         "party", 10, 6.0f,
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 }
106     },
107     {
108         "pop", 10, 6.0f,
109         { -1.6f, 4.8f, 7.2f, 8.0f, 5.6f, -1.11022e-15f, -2.4f, -2.4f,
110           -1.6f, -1.6f }
111     },
112     {
113         "reggae", 10, 8.0f,
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 }
116     },
117     {
118         "rock", 10, 5.0f,
119         { 8.0f, 4.8f, -5.6f, -8.0f, -3.2f, 4.0f, 8.8f, 11.2f, 11.2f, 11.2f }
120     },
121     {
122         "ska", 10, 6.0f,
123         { -2.4f, -4.8f, -4.0f, -1.11022e-15f, 4.0f, 5.6f, 8.8f, 9.6f,
124           11.2f, 9.6f }
125     },
126     {
127         "soft", 10, 5.0f,
128         { 4.8f, 1.6f, -1.11022e-15f, -2.4f, -1.11022e-15f, 4.0f, 8.0f, 9.6f,
129           11.2f, 12.0f }
130     },
131     {
132         "softrock", 10, 7.0f,
133         { 4.0f, 4.0f, 2.4f, -1.11022e-15f, -4.0f, -5.6f, -3.2f, -1.11022e-15f,
134           2.4f, 8.8f }
135     },
136     {
137         "techno", 10, 5.0f,
138         { 8.0f, 5.6f, -1.11022e-15f, -5.6f, -4.8f, -1.11022e-15f, 8.0f, 9.6f,
139           9.6f, 8.8f }
140     },
141 };