annotate src/audacious/xconvert.h @ 3436:a630ecae6708 trunk

Add "gboolean enabled;" to PLUGIN_COMMON_FIELDS.
author William Pitcock <nenolod@atheme.org>
date Fri, 07 Sep 2007 02:02:53 -0500
parents 3b6d316f8b09
children e97cee2185ce
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2431
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
1 /*
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
2 * Copyright (C) 2003 Haavard Kvaalen <havardk@xmms.org>
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
3 *
3121
3b6d316f8b09 GPL3 relicensing.
William Pitcock <nenolod@atheme-project.org>
parents: 2431
diff changeset
4 * Licensed under GNU GPL version 3.
2431
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
5 */
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
6
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
7 #include <audacious/plugin.h>
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
8
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
9 struct xmms_convert_buffers;
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
10
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
11 struct xmms_convert_buffers *xmms_convert_buffers_new(void);
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
12 /*
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
13 * Free the data assosiated with the buffers, without destroying the
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
14 * context. The context can be reused.
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
15 */
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
16 void xmms_convert_buffers_free(struct xmms_convert_buffers *buf);
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
17 void xmms_convert_buffers_destroy(struct xmms_convert_buffers *buf);
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
18
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
19
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
20 typedef int (*convert_func_t) (struct xmms_convert_buffers * buf,
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
21 void **data, int length);
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
22 typedef int (*convert_channel_func_t) (struct xmms_convert_buffers * buf,
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
23 void **data, int length);
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
24 typedef int (*convert_freq_func_t) (struct xmms_convert_buffers * buf,
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
25 void **data, int length, int ifreq,
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
26 int ofreq);
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
27
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
28
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
29 convert_func_t xmms_convert_get_func(AFormat output, AFormat input);
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
30 convert_channel_func_t xmms_convert_get_channel_func(AFormat fmt,
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
31 int output,
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
32 int input);
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
33 convert_freq_func_t xmms_convert_get_frequency_func(AFormat fmt,
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
34 int channels);