1938
|
1 /* Audacious
|
|
2 * Copyright (C) 2005-2006 Audacious development team.
|
|
3 *
|
|
4 * BMP - Cross-platform multimedia player
|
1653
|
5 * Copyright (C) 2003-2004 BMP development team.
|
|
6 *
|
|
7 * Based on XMMS:
|
|
8 * Copyright (C) 1998-2003 XMMS development team.
|
|
9 *
|
|
10 * This program is free software; you can redistribute it and/or modify
|
|
11 * it under the terms of the GNU General Public License as published by
|
|
12 * the Free Software Foundation; either version 2 of the License, or
|
|
13 * (at your option) any later version.
|
|
14 *
|
|
15 * This program is distributed in the hope that it will be useful,
|
|
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
18 * GNU General Public License for more details.
|
|
19 *
|
|
20 * You should have received a copy of the GNU General Public License
|
|
21 * along with this program; if not, write to the Free Software
|
|
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
23 */
|
|
24
|
|
25 #ifndef EQUALIZER_H
|
|
26 #define EQUALIZER_H
|
|
27
|
|
28 #include <glib.h>
|
|
29 #include <gtk/gtk.h>
|
|
30
|
|
31 #include "widgets/widgetcore.h"
|
|
32
|
1938
|
33 #define EQUALIZER_DOUBLESIZE (cfg.doublesize && cfg.eq_doublesize_linked)
|
|
34 #define EQUALIZER_HEIGHT ((cfg.equalizer_shaded ? 14 : 116) * (EQUALIZER_DOUBLESIZE + 1))
|
|
35 #define EQUALIZER_WIDTH (275 * (EQUALIZER_DOUBLESIZE + 1))
|
1653
|
36
|
|
37 #define EQUALIZER_DEFAULT_POS_X 20
|
|
38 #define EQUALIZER_DEFAULT_POS_Y 136
|
|
39
|
|
40 #define EQUALIZER_DEFAULT_DIR_PRESET "dir_default.preset"
|
|
41 #define EQUALIZER_DEFAULT_PRESET_EXT "preset"
|
|
42
|
1938
|
43 void equalizerwin_set_doublesize(gboolean ds);
|
1653
|
44 void equalizerwin_set_shade_menu_cb(gboolean shaded);
|
|
45 void draw_equalizer_window(gboolean force);
|
|
46 void equalizerwin_create(void);
|
|
47 void equalizerwin_show(gboolean show);
|
|
48 void equalizerwin_real_show(void);
|
|
49 void equalizerwin_real_hide(void);
|
|
50 void equalizerwin_load_auto_preset(const gchar * filename);
|
|
51 void equalizerwin_set_volume_slider(gint percent);
|
|
52 void equalizerwin_set_balance_slider(gint percent);
|
|
53 void equalizerwin_eq_changed(void);
|
|
54 void equalizerwin_set_preamp(gfloat preamp);
|
|
55 void equalizerwin_set_band(gint band, gfloat value);
|
|
56 gfloat equalizerwin_get_preamp(void);
|
|
57 gfloat equalizerwin_get_band(gint band);
|
|
58
|
|
59 gboolean equalizerwin_has_focus(void);
|
|
60
|
|
61 extern GtkWidget *equalizerwin;
|
|
62 extern PButton *equalizerwin_close;
|
|
63 extern gboolean equalizerwin_focus;
|
|
64
|
|
65 #endif
|