Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

equalizer_presets.h

00001 /*****************************************************************************
00002  * equalizer_presets.h:
00003  *****************************************************************************
00004  * Copyright (C) 2004 the VideoLAN team
00005  * $Id: equalizer_presets.h 11664 2005-07-09 06:17:09Z courmisch $
00006  *
00007  * Authors: Laurent Aimar <[email protected]>
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., 59 Temple Place - Suite 330, Boston, MA  02111, 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 static char *preset_list[] = {
00034     "flat", "classical", "club", "dance", "fullbass", "fullbasstreble",
00035     "fulltreble", "headphones","largehall", "live", "party", "pop", "reggae",
00036     "rock", "ska", "soft", "softrock", "techno"
00037 };
00038 static char *preset_list_text[] = {
00039     N_("Flat"), N_("Classical"), N_("Club"), N_("Dance"), N_("Full bass"),
00040     N_("Full bass and treble"), N_("Full treble"), N_("Headphones"),
00041     N_("Large Hall"), N_("Live"), N_("Party"), N_("Pop"), N_("Reggae"),
00042     N_("Rock"), N_("Ska"), N_("Soft"), N_("Soft rock"), N_("Techno"),
00043 };
00044 
00045 typedef struct
00046 {
00047     char *psz_name;
00048     int  i_band;
00049     float f_preamp;
00050     float f_amp[EQZ_BANDS_MAX];
00051 } eqz_preset_t;
00052 
00053 static const eqz_preset_t eqz_preset_flat_10b=
00054 {
00055     "flat", 10, 12.0,
00056     { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 },
00057 };
00058 static const eqz_preset_t eqz_preset_classical_10b=
00059 {
00060     "classical", 10, 12.0,
00061     { -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 }
00062 };
00063 static const eqz_preset_t eqz_preset_club_10b=
00064 {
00065     "club", 10, 6.0,
00066     { -1.11022e-15, -1.11022e-15, 8, 5.6, 5.6, 5.6, 3.2, -1.11022e-15, -1.11022e-15, -1.11022e-15 }
00067 };
00068 static const eqz_preset_t eqz_preset_dance_10b=
00069 {
00070     "dance", 10, 5.0,
00071     { 9.6, 7.2, 2.4, -1.11022e-15, -1.11022e-15, -5.6, -7.2, -7.2, -1.11022e-15, -1.11022e-15 }
00072 };
00073 static const eqz_preset_t eqz_preset_fullbass_10b=
00074 {
00075     "fullbass", 10, 5.0,
00076     { -8, 9.6, 9.6, 5.6, 1.6, -4, -8, -10.4, -11.2, -11.2  }
00077 };
00078 static const eqz_preset_t eqz_preset_fullbasstreble_10b=
00079 {
00080     "fullbasstreble", 10, 4.0,
00081     { 7.2, 5.6, -1.11022e-15, -7.2, -4.8, 1.6, 8, 11.2, 12, 12 }
00082 };
00083 
00084 static const eqz_preset_t eqz_preset_fulltreble_10b=
00085 {
00086     "fulltreble", 10, 3.0,
00087     { -9.6, -9.6, -9.6, -4, 2.4, 11.2, 16, 16, 16, 16.8 }
00088 };
00089 static const eqz_preset_t eqz_preset_headphones_10b=
00090 {
00091     "headphones", 10, 4.0,
00092     { 4.8, 11.2, 5.6, -3.2, -2.4, 1.6, 4.8, 9.6, 12.8, 14.4 }
00093 };
00094 static const eqz_preset_t eqz_preset_largehall_10b=
00095 {
00096     "largehall", 10, 5.0,
00097     { 10.4, 10.4, 5.6, 5.6, -1.11022e-15, -4.8, -4.8, -4.8, -1.11022e-15, -1.11022e-15 }
00098 };
00099 static const eqz_preset_t eqz_preset_live_10b=
00100 {
00101     "live", 10, 7.0,
00102     { -4.8, -1.11022e-15, 4, 5.6, 5.6, 5.6, 4, 2.4, 2.4, 2.4 }
00103 };
00104 static const eqz_preset_t eqz_preset_party_10b=
00105 {
00106     "party", 10, 6.0,
00107     { 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 }
00108 };
00109 static const eqz_preset_t eqz_preset_pop_10b=
00110 {
00111     "pop", 10, 6.0,
00112     { -1.6, 4.8, 7.2, 8, 5.6, -1.11022e-15, -2.4, -2.4, -1.6, -1.6 }
00113 };
00114 static const eqz_preset_t eqz_preset_reggae_10b=
00115 {
00116     "reggae", 10, 8.0,
00117     { -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 }
00118 };
00119 static const eqz_preset_t eqz_preset_rock_10b=
00120 {
00121     "rock", 10, 5.0,
00122     { 8, 4.8, -5.6, -8, -3.2, 4, 8.8, 11.2, 11.2, 11.2 }
00123 };
00124 static const eqz_preset_t eqz_preset_ska_10b=
00125 {
00126     "ska", 10, 6.0,
00127     { -2.4, -4.8, -4, -1.11022e-15, 4, 5.6, 8.8, 9.6, 11.2, 9.6 }
00128 };
00129 static const eqz_preset_t eqz_preset_soft_10b=
00130 {
00131     "soft", 10, 5.0,
00132     { 4.8, 1.6, -1.11022e-15, -2.4, -1.11022e-15, 4, 8, 9.6, 11.2, 12 }
00133 };
00134 static const eqz_preset_t eqz_preset_softrock_10b=
00135 {
00136     "softrock", 10, 7.0,
00137     { 4, 4, 2.4, -1.11022e-15, -4, -5.6, -3.2, -1.11022e-15, 2.4, 8.8 }
00138 };
00139 static const eqz_preset_t eqz_preset_techno_10b=
00140 {
00141     "techno", 10, 5.0,
00142     { 8, 5.6, -1.11022e-15, -5.6, -4.8, -1.11022e-15, 8, 9.6, 9.6, 8.8 }
00143 };
00144 
00145 static const eqz_preset_t *eqz_preset_10b[] =
00146 {
00147     &eqz_preset_flat_10b,
00148     &eqz_preset_classical_10b,
00149     &eqz_preset_club_10b,
00150     &eqz_preset_dance_10b,
00151     &eqz_preset_fullbass_10b,
00152     &eqz_preset_fullbasstreble_10b,
00153     &eqz_preset_fulltreble_10b,
00154     &eqz_preset_headphones_10b,
00155     &eqz_preset_largehall_10b,
00156     &eqz_preset_live_10b,
00157     &eqz_preset_party_10b,
00158     &eqz_preset_pop_10b,
00159     &eqz_preset_reggae_10b,
00160     &eqz_preset_rock_10b,
00161     &eqz_preset_ska_10b,
00162     &eqz_preset_soft_10b,
00163     &eqz_preset_softrock_10b,
00164     &eqz_preset_techno_10b,
00165     NULL
00166 };
00167 
00168 
00169 

Generated on Tue Dec 20 10:14:27 2005 for vlc-0.8.4a by  doxygen 1.4.2