equalizer_presets.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * equalizer_presets.h:
00003  *****************************************************************************
00004  * Copyright (C) 2004 the VideoLAN team
00005  * $Id$
00006  *
00007  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
00008  *
00009  * This program is free software; you can redistribute it and/or modify
00010  * it under the terms of the GNU General Public License as published by
00011  * the Free Software Foundation; either version 2 of the License, or
00012  * (at your option) any later version.
00013  *
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU General Public License
00020  * along with this program; if not, write to the Free Software
00021  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
00022  *****************************************************************************/
00023 
00024 /*****************************************************************************
00025  * Equalizer presets
00026  *****************************************************************************/
00027 /* Equalizer presets values are in this file instead of equalizer.c, so you can
00028  * get these values even if the equalizer is not enabled.
00029  */
00030 
00031 #define EQZ_BANDS_MAX 10
00032 
00033 #define NB_PRESETS 18
00034 static const char *const preset_list[] = {
00035     "flat", "classical", "club", "dance", "fullbass", "fullbasstreble",
00036     "fulltreble", "headphones","largehall", "live", "party", "pop", "reggae",
00037     "rock", "ska", "soft", "softrock", "techno"
00038 };
00039 static const char *const preset_list_text[] = {
00040     N_("Flat"), N_("Classical"), N_("Club"), N_("Dance"), N_("Full bass"),
00041     N_("Full bass and treble"), N_("Full treble"), N_("Headphones"),
00042     N_("Large Hall"), N_("Live"), N_("Party"), N_("Pop"), N_("Reggae"),
00043     N_("Rock"), N_("Ska"), N_("Soft"), N_("Soft rock"), N_("Techno"),
00044 };
00045 
00046 typedef struct
00047 {
00048     const char *psz_name;
00049     int  i_band;
00050     float f_preamp;
00051     float f_amp[EQZ_BANDS_MAX];
00052 } eqz_preset_t;
00053 
00054 static const eqz_preset_t eqz_preset_flat_10b=
00055 {
00056     "flat", 10, 12.0,
00057     { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 },
00058 };
00059 static const eqz_preset_t eqz_preset_classical_10b=
00060 {
00061     "classical", 10, 12.0,
00062     { -1.11022e-15, -1.11022e-15, -1.11022e-15, -1.11022e-15, -1.11022e-15, -1.11022e-15, -7.2, -7.2, -7.2, -9.6 }
00063 };
00064 static const eqz_preset_t eqz_preset_club_10b=
00065 {
00066     "club", 10, 6.0,
00067     { -1.11022e-15, -1.11022e-15, 8, 5.6, 5.6, 5.6, 3.2, -1.11022e-15, -1.11022e-15, -1.11022e-15 }
00068 };
00069 static const eqz_preset_t eqz_preset_dance_10b=
00070 {
00071     "dance", 10, 5.0,
00072     { 9.6, 7.2, 2.4, -1.11022e-15, -1.11022e-15, -5.6, -7.2, -7.2, -1.11022e-15, -1.11022e-15 }
00073 };
00074 static const eqz_preset_t eqz_preset_fullbass_10b=
00075 {
00076     "fullbass", 10, 5.0,
00077     { -8, 9.6, 9.6, 5.6, 1.6, -4, -8, -10.4, -11.2, -11.2  }
00078 };
00079 static const eqz_preset_t eqz_preset_fullbasstreble_10b=
00080 {
00081     "fullbasstreble", 10, 4.0,
00082     { 7.2, 5.6, -1.11022e-15, -7.2, -4.8, 1.6, 8, 11.2, 12, 12 }
00083 };
00084 
00085 static const eqz_preset_t eqz_preset_fulltreble_10b=
00086 {
00087     "fulltreble", 10, 3.0,
00088     { -9.6, -9.6, -9.6, -4, 2.4, 11.2, 16, 16, 16, 16.8 }
00089 };
00090 static const eqz_preset_t eqz_preset_headphones_10b=
00091 {
00092     "headphones", 10, 4.0,
00093     { 4.8, 11.2, 5.6, -3.2, -2.4, 1.6, 4.8, 9.6, 12.8, 14.4 }
00094 };
00095 static const eqz_preset_t eqz_preset_largehall_10b=
00096 {
00097     "largehall", 10, 5.0,
00098     { 10.4, 10.4, 5.6, 5.6, -1.11022e-15, -4.8, -4.8, -4.8, -1.11022e-15, -1.11022e-15 }
00099 };
00100 static const eqz_preset_t eqz_preset_live_10b=
00101 {
00102     "live", 10, 7.0,
00103     { -4.8, -1.11022e-15, 4, 5.6, 5.6, 5.6, 4, 2.4, 2.4, 2.4 }
00104 };
00105 static const eqz_preset_t eqz_preset_party_10b=
00106 {
00107     "party", 10, 6.0,
00108     { 7.2, 7.2, -1.11022e-15, -1.11022e-15, -1.11022e-15, -1.11022e-15, -1.11022e-15, -1.11022e-15, 7.2, 7.2 }
00109 };
00110 static const eqz_preset_t eqz_preset_pop_10b=
00111 {
00112     "pop", 10, 6.0,
00113     { -1.6, 4.8, 7.2, 8, 5.6, -1.11022e-15, -2.4, -2.4, -1.6, -1.6 }
00114 };
00115 static const eqz_preset_t eqz_preset_reggae_10b=
00116 {
00117     "reggae", 10, 8.0,
00118     { -1.11022e-15, -1.11022e-15, -1.11022e-15, -5.6, -1.11022e-15, 6.4, 6.4, -1.11022e-15, -1.11022e-15, -1.11022e-15 }
00119 };
00120 static const eqz_preset_t eqz_preset_rock_10b=
00121 {
00122     "rock", 10, 5.0,
00123     { 8, 4.8, -5.6, -8, -3.2, 4, 8.8, 11.2, 11.2, 11.2 }
00124 };
00125 static const eqz_preset_t eqz_preset_ska_10b=
00126 {
00127     "ska", 10, 6.0,
00128     { -2.4, -4.8, -4, -1.11022e-15, 4, 5.6, 8.8, 9.6, 11.2, 9.6 }
00129 };
00130 static const eqz_preset_t eqz_preset_soft_10b=
00131 {
00132     "soft", 10, 5.0,
00133     { 4.8, 1.6, -1.11022e-15, -2.4, -1.11022e-15, 4, 8, 9.6, 11.2, 12 }
00134 };
00135 static const eqz_preset_t eqz_preset_softrock_10b=
00136 {
00137     "softrock", 10, 7.0,
00138     { 4, 4, 2.4, -1.11022e-15, -4, -5.6, -3.2, -1.11022e-15, 2.4, 8.8 }
00139 };
00140 static const eqz_preset_t eqz_preset_techno_10b=
00141 {
00142     "techno", 10, 5.0,
00143     { 8, 5.6, -1.11022e-15, -5.6, -4.8, -1.11022e-15, 8, 9.6, 9.6, 8.8 }
00144 };
00145 
00146 static const eqz_preset_t *eqz_preset_10b[] =
00147 {
00148     &eqz_preset_flat_10b,
00149     &eqz_preset_classical_10b,
00150     &eqz_preset_club_10b,
00151     &eqz_preset_dance_10b,
00152     &eqz_preset_fullbass_10b,
00153     &eqz_preset_fullbasstreble_10b,
00154     &eqz_preset_fulltreble_10b,
00155     &eqz_preset_headphones_10b,
00156     &eqz_preset_largehall_10b,
00157     &eqz_preset_live_10b,
00158     &eqz_preset_party_10b,
00159     &eqz_preset_pop_10b,
00160     &eqz_preset_reggae_10b,
00161     &eqz_preset_rock_10b,
00162     &eqz_preset_ska_10b,
00163     &eqz_preset_soft_10b,
00164     &eqz_preset_softrock_10b,
00165     &eqz_preset_techno_10b,
00166     NULL
00167 };
00168 
00169 
00170 

Generated on Wed Aug 13 08:02:37 2008 for VLC by  doxygen 1.5.1