annotate audacious/plugin.h @ 2025:73471758fc71 trunk

[svn] - make sure the mainwin is redrawn correctly when doublesized. reported by Tom St. Denis, closes #674.
author nenolod
date Wed, 29 Nov 2006 19:49:30 -0800
parents c2a63f41d8c6
children 8d2b17ee266e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1 /* BMP - Cross-platform multimedia player
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2 * Copyright (C) 2003-2004 BMP development team.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3 *
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4 * Based on XMMS:
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5 * Copyright (C) 1998-2000 Peter Alm, Mikael Alm, Olle Hallnas, Thomas Nilsson and 4Front Technologies
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6 *
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
7 * Redistribution and use in source and binary forms, with or without
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
8 * modification, are permitted provided that the following conditions are
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
9 * met: 1. Redistributions of source code must retain the above copyright
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
10 * notice, this list of conditions and the following disclaimer. 2.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
11 * Redistributions in binary form must reproduce the above copyright notice,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
12 * this list of conditions and the following disclaimer in the documentation
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
13 * and/or other materials provided with the distribution.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
14 *
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
15 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
16 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
17 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
18 * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
19 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
21 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
22 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
25 * SUCH DAMAGE.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
26 */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
27
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
28 /* Please see the BMP Wiki for information about the plugin interface */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
29
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
30 #ifndef BMP_PLUGIN_H
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
31 #define BMP_PLUGIN_H
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
32
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
33
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
34 #include <glib.h>
1951
c2a63f41d8c6 [svn] - NewVFS input probing layer. VFS-Aware plugins can automatically take
nenolod
parents: 1563
diff changeset
35 #ifdef _AUDACIOUS_CORE
c2a63f41d8c6 [svn] - NewVFS input probing layer. VFS-Aware plugins can automatically take
nenolod
parents: 1563
diff changeset
36 # include "libaudacious/vfs.h"
c2a63f41d8c6 [svn] - NewVFS input probing layer. VFS-Aware plugins can automatically take
nenolod
parents: 1563
diff changeset
37 #else
c2a63f41d8c6 [svn] - NewVFS input probing layer. VFS-Aware plugins can automatically take
nenolod
parents: 1563
diff changeset
38 # include "audacious/vfs.h"
c2a63f41d8c6 [svn] - NewVFS input probing layer. VFS-Aware plugins can automatically take
nenolod
parents: 1563
diff changeset
39 #endif
1248
6d9c45d157f9 [svn] - this is a hack until I find a better solution
nenolod
parents: 1231
diff changeset
40 #include "audacious/titlestring.h"
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
41
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
42 #define INPUT_PLUGIN(x) ((InputPlugin *)(x))
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
43 #define OUTPUT_PLUGIN(x) ((OutputPlugin *)(x))
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
44 #define EFFECT_PLUGIN(x) ((EffectPlugin *)(x))
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
45 #define GENERAL_PLUGIN(x) ((GeneralPlugin *)(x))
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
46 #define VIS_PLUGIN(x) ((VisPlugin *)(x))
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
47
1563
c4640c88942d [svn] - lowlevel plugin stuff
nenolod
parents: 1273
diff changeset
48 #define LOWLEVEL_PLUGIN(x) ((LowlevelPlugin *)(x))
c4640c88942d [svn] - lowlevel plugin stuff
nenolod
parents: 1273
diff changeset
49
1951
c2a63f41d8c6 [svn] - NewVFS input probing layer. VFS-Aware plugins can automatically take
nenolod
parents: 1563
diff changeset
50 #define __AUDACIOUS_NEWVFS__
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
51
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
52 typedef enum {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
53 FMT_U8,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
54 FMT_S8,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
55 FMT_U16_LE,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
56 FMT_U16_BE,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
57 FMT_U16_NE,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
58 FMT_S16_LE,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
59 FMT_S16_BE,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
60 FMT_S16_NE
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
61 } AFormat;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
62
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
63 typedef enum {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
64 INPUT_VIS_ANALYZER,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
65 INPUT_VIS_SCOPE,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
66 INPUT_VIS_VU,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
67 INPUT_VIS_OFF
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
68 } InputVisType;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
69
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
70
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
71 typedef struct _Plugin Plugin;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
72 typedef struct _InputPlugin InputPlugin;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
73 typedef struct _OutputPlugin OutputPlugin;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
74 typedef struct _EffectPlugin EffectPlugin;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
75 typedef struct _GeneralPlugin GeneralPlugin;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
76 typedef struct _VisPlugin VisPlugin;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
77
1563
c4640c88942d [svn] - lowlevel plugin stuff
nenolod
parents: 1273
diff changeset
78 typedef struct _LowlevelPlugin LowlevelPlugin;
c4640c88942d [svn] - lowlevel plugin stuff
nenolod
parents: 1273
diff changeset
79
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
80 /* Sadly, this is the most we can generalize out of the disparate
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
81 plugin structs usable with typecasts - descender */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
82 struct _Plugin {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
83 gpointer handle;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
84 gchar *filename;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
85 };
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
86
1563
c4640c88942d [svn] - lowlevel plugin stuff
nenolod
parents: 1273
diff changeset
87 /*
c4640c88942d [svn] - lowlevel plugin stuff
nenolod
parents: 1273
diff changeset
88 * LowlevelPlugin is used for lowlevel system services, such as PlaylistContainers,
c4640c88942d [svn] - lowlevel plugin stuff
nenolod
parents: 1273
diff changeset
89 * VFSContainers and the like.
c4640c88942d [svn] - lowlevel plugin stuff
nenolod
parents: 1273
diff changeset
90 *
c4640c88942d [svn] - lowlevel plugin stuff
nenolod
parents: 1273
diff changeset
91 * They are not GUI visible at this time.
c4640c88942d [svn] - lowlevel plugin stuff
nenolod
parents: 1273
diff changeset
92 */
c4640c88942d [svn] - lowlevel plugin stuff
nenolod
parents: 1273
diff changeset
93 struct _LowlevelPlugin {
c4640c88942d [svn] - lowlevel plugin stuff
nenolod
parents: 1273
diff changeset
94 gpointer handle;
c4640c88942d [svn] - lowlevel plugin stuff
nenolod
parents: 1273
diff changeset
95 gchar *filename;
c4640c88942d [svn] - lowlevel plugin stuff
nenolod
parents: 1273
diff changeset
96
c4640c88942d [svn] - lowlevel plugin stuff
nenolod
parents: 1273
diff changeset
97 gchar *description;
c4640c88942d [svn] - lowlevel plugin stuff
nenolod
parents: 1273
diff changeset
98
c4640c88942d [svn] - lowlevel plugin stuff
nenolod
parents: 1273
diff changeset
99 void (*init) (void);
c4640c88942d [svn] - lowlevel plugin stuff
nenolod
parents: 1273
diff changeset
100 void (*cleanup) (void);
c4640c88942d [svn] - lowlevel plugin stuff
nenolod
parents: 1273
diff changeset
101 };
c4640c88942d [svn] - lowlevel plugin stuff
nenolod
parents: 1273
diff changeset
102
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
103 struct _OutputPlugin {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
104 gpointer handle;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
105 gchar *filename;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
106
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
107 gchar *description;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
108
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
109 void (*init) (void);
309
b04ce1c98b6f [svn] Plugin cleanup functionality, via giacomo.
nenolod
parents: 0
diff changeset
110 void (*cleanup) (void);
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
111 void (*about) (void);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
112 void (*configure) (void);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
113 void (*get_volume) (gint * l, gint * r);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
114 void (*set_volume) (gint l, gint r);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
115
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
116 gint (*open_audio) (AFormat fmt, gint rate, gint nch);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
117 void (*write_audio) (gpointer ptr, gint length);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
118 void (*close_audio) (void);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
119
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
120 void (*flush) (gint time);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
121 void (*pause) (gshort paused);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
122 gint (*buffer_free) (void);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
123 gint (*buffer_playing) (void);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
124 gint (*output_time) (void);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
125 gint (*written_time) (void);
515
802a8ed87f67 [svn] Add support for tell_audio(), an output plugin accessor which will give us the information the input plugin passed to
nenolod
parents: 309
diff changeset
126
516
69a70ab41ed7 [svn] tell_audio returns void, not gint.
nenolod
parents: 515
diff changeset
127 void (*tell_audio) (AFormat * fmt, gint * rate, gint * nch);
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
128 };
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
129
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
130 struct _EffectPlugin {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
131 gpointer handle;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
132 gchar *filename;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
133
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
134 gchar *description;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
135
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
136 void (*init) (void);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
137 void (*cleanup) (void);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
138 void (*about) (void);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
139 void (*configure) (void);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
140
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
141 gint (*mod_samples) (gpointer * data, gint length, AFormat fmt, gint srate, gint nch);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
142 void (*query_format) (AFormat * fmt, gint * rate, gint * nch);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
143 };
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
144
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
145 struct _InputPlugin {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
146 gpointer handle;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
147 gchar *filename;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
148
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
149 gchar *description;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
150
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
151 void (*init) (void);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
152 void (*about) (void);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
153 void (*configure) (void);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
154
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
155 gint (*is_our_file) (gchar * filename);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
156 GList *(*scan_dir) (gchar * dirname);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
157
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
158 void (*play_file) (gchar * filename);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
159 void (*stop) (void);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
160 void (*pause) (gshort paused);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
161 void (*seek) (gint time);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
162
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
163 void (*set_eq) (gint on, gfloat preamp, gfloat * bands);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
164
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
165 gint (*get_time) (void);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
166
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
167 void (*get_volume) (gint * l, gint * r);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
168 void (*set_volume) (gint l, gint r);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
169
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
170 void (*cleanup) (void);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
171
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
172 InputVisType (*get_vis_type) (void);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
173 void (*add_vis_pcm) (gint time, AFormat fmt, gint nch, gint length, gpointer ptr);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
174
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
175 void (*set_info) (gchar * title, gint length, gint rate, gint freq, gint nch);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
176 void (*set_info_text) (gchar * text);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
177 void (*get_song_info) (gchar * filename, gchar ** title, gint * length);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
178 void (*file_info_box) (gchar * filename);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
179
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
180 OutputPlugin *output;
1231
502b369314c1 [svn] - InputPlugin class:
nenolod
parents: 516
diff changeset
181
1951
c2a63f41d8c6 [svn] - NewVFS input probing layer. VFS-Aware plugins can automatically take
nenolod
parents: 1563
diff changeset
182 /* Added in Audacious 1.1.0 */
1231
502b369314c1 [svn] - InputPlugin class:
nenolod
parents: 516
diff changeset
183 TitleInput *(*get_song_tuple) (gchar * filename);
502b369314c1 [svn] - InputPlugin class:
nenolod
parents: 516
diff changeset
184 void (*set_song_tuple) (TitleInput * tuple);
1273
3b990c26fc46 [svn] - Support for the buffer indicator in playpaus.png that was apparently
nhjm449
parents: 1248
diff changeset
185 void (*set_status_buffering) (gboolean status);
1951
c2a63f41d8c6 [svn] - NewVFS input probing layer. VFS-Aware plugins can automatically take
nenolod
parents: 1563
diff changeset
186
c2a63f41d8c6 [svn] - NewVFS input probing layer. VFS-Aware plugins can automatically take
nenolod
parents: 1563
diff changeset
187 /* Added in Audacious 1.2.2 */
c2a63f41d8c6 [svn] - NewVFS input probing layer. VFS-Aware plugins can automatically take
nenolod
parents: 1563
diff changeset
188 gint (*is_our_file_from_vfs) (gchar *filename, VFSFile *fd);
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
189 };
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
190
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
191 struct _GeneralPlugin {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
192 gpointer handle;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
193 gchar *filename;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
194
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
195 gint xmms_session;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
196 gchar *description;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
197
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
198 void (*init) (void);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
199 void (*about) (void);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
200 void (*configure) (void);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
201 void (*cleanup) (void);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
202 };
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
203
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
204 struct _VisPlugin {
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
205 gpointer handle;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
206 gchar *filename;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
207
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
208 gint xmms_session;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
209 gchar *description;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
210
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
211 gint num_pcm_chs_wanted;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
212 gint num_freq_chs_wanted;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
213
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
214 void (*init) (void);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
215 void (*cleanup) (void);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
216 void (*about) (void);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
217 void (*configure) (void);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
218 void (*disable_plugin) (struct _VisPlugin *);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
219 void (*playback_start) (void);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
220 void (*playback_stop) (void);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
221 void (*render_pcm) (gint16 pcm_data[2][512]);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
222 void (*render_freq) (gint16 freq_data[2][256]);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
223 };
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
224
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
225
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
226 G_BEGIN_DECLS
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
227
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
228 /* So that input plugins can get the title formatting information */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
229 G_CONST_RETURN gchar * xmms_get_gentitle_format(void);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
230
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
231 /* So that output plugins can communicate with effect plugins */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
232 EffectPlugin *get_current_effect_plugin(void);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
233 gboolean effects_enabled(void);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
234 gboolean plugin_set_errortext(const gchar * text);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
235
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
236 G_END_DECLS
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
237
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
238 #endif