0
+ �� 1 /* BMP - Cross-platform multimedia player
+ �� 2 * Copyright (C) 2003-2004 BMP development team.
+ �� 3 *
+ �� 4 * Based on XMMS:
+ �� 5 * Copyright (C) 1998-2003 XMMS development team.
+ �� 6 *
+ �� 7 * This program is free software; you can redistribute it and/or modify
+ �� 8 * it under the terms of the GNU General Public License as published by
+ �� 9 * the Free Software Foundation; either version 2 of the License, or
+ �� 10 * (at your option) any later version.
+ �� 11 *
+ �� 12 * This program is distributed in the hope that it will be useful,
+ �� 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ �� 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ �� 15 * GNU General Public License for more details.
+ �� 16 *
+ �� 17 * You should have received a copy of the GNU General Public License
+ �� 18 * along with this program; if not, write to the Free Software
+ �� 19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ �� 20 */
+ �� 21 #ifndef VIS_H
+ �� 22 #define VIS_H
+ �� 23
+ �� 24 #include <glib.h>
+ �� 25 #include <gdk/gdk.h>
+ �� 26
+ �� 27 #include "widget.h"
+ �� 28
+ �� 29 typedef enum {
+ �� 30 VIS_ANALYZER, VIS_SCOPE, VIS_OFF
+ �� 31 } VisType;
+ �� 32
+ �� 33 typedef enum {
+ �� 34 ANALYZER_NORMAL, ANALYZER_FIRE, ANALYZER_VLINES
+ �� 35 } AnalyzerMode;
+ �� 36
+ �� 37 typedef enum {
+ �� 38 ANALYZER_LINES, ANALYZER_BARS
+ �� 39 } AnalyzerType;
+ �� 40
+ �� 41 typedef enum {
+ �� 42 SCOPE_DOT, SCOPE_LINE, SCOPE_SOLID
+ �� 43 } ScopeMode;
+ �� 44
+ �� 45 typedef enum {
+ �� 46 VU_NORMAL, VU_SMOOTH
+ �� 47 } VUMode;
+ �� 48
+ �� 49 typedef enum {
+ �� 50 REFRESH_FULL, REFRESH_HALF, REFRESH_QUARTER, REFRESH_EIGTH
+ �� 51 } RefreshRate;
+ �� 52
+ �� 53 typedef enum {
+ �� 54 FALLOFF_SLOWEST, FALLOFF_SLOW, FALLOFF_MEDIUM, FALLOFF_FAST,
+ �� 55 FALLOFF_FASTEST
+ �� 56 } FalloffSpeed;
+ �� 57
+ �� 58 #define VIS(x) ((Vis *)(x))
+ �� 59 struct _Vis {
+ �� 60 Widget vs_widget;
+ �� 61 GdkWindow *vs_window;
+ �� 62 gfloat vs_data[75], vs_peak[75], vs_peak_speed[75];
+ �� 63 gint vs_refresh_delay;
+ �� 64 };
+ �� 65
+ �� 66 typedef struct _Vis Vis;
+ �� 67
+ �� 68 void vis_draw(Widget * w);
+ �� 69
+ �� 70 Vis *create_vis(GList ** wlist, GdkPixmap * parent, GdkWindow * window,
+ �� 71 GdkGC * gc, gint x, gint y, gint width);
+ �� 72 void vis_timeout_func(Vis * vis, guchar * data);
+ �� 73 void vis_clear_data(Vis * vis);
+ �� 74 void vis_clear(Vis * vis);
+ �� 75 void vis_set_window(Vis * vis, GdkWindow * window);
+ �� 76
+ �� 77 #endif