0
|
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 void convert_free_buffer(void);
|
|
10
|
|
11 struct xmms_convert_buffers;
|
|
12
|
|
13 struct xmms_convert_buffers *xmms_convert_buffers_new(void);
|
|
14 /*
|
|
15 * Free the data assosiated with the buffers, without destroying the
|
|
16 * context. The context can be reused.
|
|
17 */
|
|
18 void xmms_convert_buffers_free(struct xmms_convert_buffers *buf);
|
|
19 void xmms_convert_buffers_destroy(struct xmms_convert_buffers *buf);
|
|
20
|
|
21
|
|
22 typedef int (*convert_func_t) (struct xmms_convert_buffers * buf,
|
|
23 void **data, int length);
|
|
24 typedef int (*convert_channel_func_t) (struct xmms_convert_buffers * buf,
|
|
25 void **data, int length);
|
|
26 typedef int (*convert_freq_func_t) (struct xmms_convert_buffers * buf,
|
|
27 void **data, int length, int ifreq,
|
|
28 int ofreq);
|
|
29
|
|
30
|
|
31 convert_func_t xmms_convert_get_func(AFormat output, AFormat input);
|
|
32 convert_channel_func_t xmms_convert_get_channel_func(AFormat fmt,
|
|
33 int output,
|
|
34 int input);
|
|
35 convert_freq_func_t xmms_convert_get_frequency_func(AFormat fmt,
|
|
36 int channels);
|