Mercurial > audlegacy
diff libaudacious/xconvert.h @ 0:cb178e5ad177 trunk
[svn] Import audacious source.
author | nenolod |
---|---|
date | Mon, 24 Oct 2005 03:06:47 -0700 |
parents | |
children | 53a3d5db6b58 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libaudacious/xconvert.h Mon Oct 24 03:06:47 2005 -0700 @@ -0,0 +1,36 @@ +/* + * Copyright (C) 2003 Haavard Kvaalen <havardk@xmms.org> + * + * Licensed under GNU LGPL version 2. + */ + +#include <audacious/plugin.h> + +void convert_free_buffer(void); + +struct xmms_convert_buffers; + +struct xmms_convert_buffers *xmms_convert_buffers_new(void); +/* + * Free the data assosiated with the buffers, without destroying the + * context. The context can be reused. + */ +void xmms_convert_buffers_free(struct xmms_convert_buffers *buf); +void xmms_convert_buffers_destroy(struct xmms_convert_buffers *buf); + + +typedef int (*convert_func_t) (struct xmms_convert_buffers * buf, + void **data, int length); +typedef int (*convert_channel_func_t) (struct xmms_convert_buffers * buf, + void **data, int length); +typedef int (*convert_freq_func_t) (struct xmms_convert_buffers * buf, + void **data, int length, int ifreq, + int ofreq); + + +convert_func_t xmms_convert_get_func(AFormat output, AFormat input); +convert_channel_func_t xmms_convert_get_channel_func(AFormat fmt, + int output, + int input); +convert_freq_func_t xmms_convert_get_frequency_func(AFormat fmt, + int channels);