annotate src/skins/ui_equalizer.h @ 3153:3a1d7d680816

More ALSA restructuring from Hans de Goede. (Closes #68)
author William Pitcock <nenolod@atheme.org>
date Tue, 12 May 2009 15:29:18 -0500
parents 04c38b7a6079
children 1ffcad5f406c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2606
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
1 /* Audacious - Cross-platform multimedia player
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
2 * Copyright (C) 2005-2007 Audacious development team.
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
3 *
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
4 * Based on BMP:
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
5 * Copyright (C) 2003-2004 BMP development team.
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
6 *
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
7 * Based on XMMS:
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
8 * Copyright (C) 1998-2003 XMMS development team.
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
9 *
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
10 * This program is free software; you can redistribute it and/or modify
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
11 * it under the terms of the GNU General Public License as published by
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
12 * the Free Software Foundation; under version 3 of the License.
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
13 *
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
14 * This program is distributed in the hope that it will be useful,
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
17 * GNU General Public License for more details.
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
18 *
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
19 * You should have received a copy of the GNU General Public License
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
20 * along with this program. If not, see <http://www.gnu.org/licenses>.
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
21 *
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
22 * The Audacious team does not consider modular code linking to
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
23 * Audacious or using our public API to be a derived work.
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
24 */
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
25
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
26 #ifndef AUDACIOUS_UI_EQUALIZER_H
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
27 #define AUDACIOUS_UI_EQUALIZER_H
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
28
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
29 #include <glib.h>
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
30 #include <gtk/gtk.h>
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
31 #include "skins_cfg.h"
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
32
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
33 #define EQUALIZER_SCALED (config.scaled && config.eq_scaled_linked)
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
34 #define EQUALIZER_SCALE_FACTOR (EQUALIZER_SCALED ? config.scale_factor : 1)
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
35
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
36 #define EQUALIZER_HEIGHT ((config.equalizer_shaded ? 14 : 116) * (EQUALIZER_SCALE_FACTOR))
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
37 #define EQUALIZER_WIDTH (275 * EQUALIZER_SCALE_FACTOR)
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
38
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
39 #define EQUALIZER_DEFAULT_POS_X 20
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
40 #define EQUALIZER_DEFAULT_POS_Y 136
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
41
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
42 #define EQUALIZER_DEFAULT_DIR_PRESET "dir_default.preset"
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
43 #define EQUALIZER_DEFAULT_PRESET_EXT "preset"
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
44
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
45 void equalizerwin_set_scaled(gboolean ds);
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
46 void equalizerwin_set_shade_menu_cb(gboolean shaded);
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
47 void draw_equalizer_window(gboolean force);
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
48 void equalizerwin_create(void);
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
49 void equalizerwin_show(gboolean show);
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
50 void equalizerwin_real_show(void);
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
51 void equalizerwin_real_hide(void);
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
52 void equalizerwin_load_auto_preset(const gchar * filename);
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
53 void equalizerwin_set_volume_slider(gint percent);
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
54 void equalizerwin_set_balance_slider(gint percent);
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
55 void equalizerwin_eq_changed(void);
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
56 void equalizerwin_set_preamp(gfloat preamp);
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
57 void equalizerwin_set_band(gint band, gfloat value);
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
58 gfloat equalizerwin_get_preamp(void);
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
59 gfloat equalizerwin_get_band(gint band);
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
60
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
61 gboolean equalizerwin_has_focus(void);
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
62
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
63 extern GtkWidget *equalizerwin;
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
64 extern GtkWidget *equalizerwin_graph;
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
65 extern gboolean equalizerwin_focus;
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
66
2792
04c38b7a6079 sync ui_equalizer changes with skins plugin
mf0102 <0102@gmx.at>
parents: 2606
diff changeset
67 void equalizerwin_activate(gboolean active);
2606
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
68
b53841a1b5d3 add ui_equalizer
Tomasz Mon <desowin@gmail.com>
parents:
diff changeset
69 #endif /* AUDACIOUS_UI_EQUALIZER_H */