Mercurial > audlegacy
comparison src/audacious/xconvert.h @ 2431:3ec22a11c83e trunk
[svn] - moved titlestring.* and xconvert.* from libaudacious to audacious
author | mf0102 |
---|---|
date | Sat, 27 Jan 2007 12:10:21 -0800 |
parents | |
children | 3b6d316f8b09 |
comparison
equal
deleted
inserted
replaced
2430:4e2fc64d95ef | 2431:3ec22a11c83e |
---|---|
1 /* | |
2 * Copyright (C) 2003 Haavard Kvaalen <havardk@xmms.org> | |
3 * | |
4 * Licensed under GNU LGPL version 2. | |
5 */ | |
6 | |
7 #include <audacious/plugin.h> | |
8 | |
9 struct xmms_convert_buffers; | |
10 | |
11 struct xmms_convert_buffers *xmms_convert_buffers_new(void); | |
12 /* | |
13 * Free the data assosiated with the buffers, without destroying the | |
14 * context. The context can be reused. | |
15 */ | |
16 void xmms_convert_buffers_free(struct xmms_convert_buffers *buf); | |
17 void xmms_convert_buffers_destroy(struct xmms_convert_buffers *buf); | |
18 | |
19 | |
20 typedef int (*convert_func_t) (struct xmms_convert_buffers * buf, | |
21 void **data, int length); | |
22 typedef int (*convert_channel_func_t) (struct xmms_convert_buffers * buf, | |
23 void **data, int length); | |
24 typedef int (*convert_freq_func_t) (struct xmms_convert_buffers * buf, | |
25 void **data, int length, int ifreq, | |
26 int ofreq); | |
27 | |
28 | |
29 convert_func_t xmms_convert_get_func(AFormat output, AFormat input); | |
30 convert_channel_func_t xmms_convert_get_channel_func(AFormat fmt, | |
31 int output, | |
32 int input); | |
33 convert_freq_func_t xmms_convert_get_frequency_func(AFormat fmt, | |
34 int channels); |