annotate src/audacious/xconvert.h @ 4164:2a6d9dd09ec1

More prettying.
author William Pitcock <nenolod@atheme.org>
date Thu, 10 Jan 2008 05:44:38 -0600
parents e97cee2185ce
children
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
3749
e97cee2185ce add include guard
William Pitcock <nenolod@atheme.org>
parents: 3121
diff changeset
7 #ifndef _AUDACIOUS_XCONVERT_H
e97cee2185ce add include guard
William Pitcock <nenolod@atheme.org>
parents: 3121
diff changeset
8 #define _AUDACIOUS_XCONVERT_H
e97cee2185ce add include guard
William Pitcock <nenolod@atheme.org>
parents: 3121
diff changeset
9
2431
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
10 #include <audacious/plugin.h>
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
11
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
12 struct xmms_convert_buffers;
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
13
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
14 struct xmms_convert_buffers *xmms_convert_buffers_new(void);
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 * Free the data assosiated with the buffers, without destroying the
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
17 * context. The context can be reused.
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 void xmms_convert_buffers_free(struct xmms_convert_buffers *buf);
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
20 void xmms_convert_buffers_destroy(struct xmms_convert_buffers *buf);
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
21
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
22
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
23 typedef int (*convert_func_t) (struct xmms_convert_buffers * buf,
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
24 void **data, int length);
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
25 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
26 void **data, int length);
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
27 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
28 void **data, int length, int ifreq,
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
29 int ofreq);
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
30
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
31
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
32 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
33 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
34 int output,
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
35 int input);
3ec22a11c83e [svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
mf0102
parents:
diff changeset
36 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
37 int channels);
3749
e97cee2185ce add include guard
William Pitcock <nenolod@atheme.org>
parents: 3121
diff changeset
38
e97cee2185ce add include guard
William Pitcock <nenolod@atheme.org>
parents: 3121
diff changeset
39 #endif