comparison src/libaudacious/xconvert.h @ 2313:3149d4b1a9a9 trunk

[svn] - objective-make autodepend fixes - move all sourcecode into src/ and adjust Makefiles accordingly
author nenolod
date Fri, 12 Jan 2007 11:43:40 -0800
parents
children
comparison
equal deleted inserted replaced
2312:e1a5a66fb9cc 2313:3149d4b1a9a9
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);