annotate libaudacious/xconvert.h @ 2081:b98891c9e155 trunk

[svn] - update playlist_delete_filenames() and friends
author nenolod
date Mon, 11 Dec 2006 03:30:07 -0800
parents 53a3d5db6b58
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
1 /*
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
2 * Copyright (C) 2003 Haavard Kvaalen <havardk@xmms.org>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
3 *
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
4 * Licensed under GNU LGPL version 2.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
5 */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
6
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
7 #include <audacious/plugin.h>
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
8
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
9 struct xmms_convert_buffers;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
10
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
11 struct xmms_convert_buffers *xmms_convert_buffers_new(void);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
12 /*
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
13 * Free the data assosiated with the buffers, without destroying the
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
14 * context. The context can be reused.
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
15 */
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
16 void xmms_convert_buffers_free(struct xmms_convert_buffers *buf);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
17 void xmms_convert_buffers_destroy(struct xmms_convert_buffers *buf);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
18
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
19
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
20 typedef int (*convert_func_t) (struct xmms_convert_buffers * buf,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
21 void **data, int length);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
22 typedef int (*convert_channel_func_t) (struct xmms_convert_buffers * buf,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
23 void **data, int length);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
24 typedef int (*convert_freq_func_t) (struct xmms_convert_buffers * buf,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
25 void **data, int length, int ifreq,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
26 int ofreq);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
27
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
28
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
29 convert_func_t xmms_convert_get_func(AFormat output, AFormat input);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
30 convert_channel_func_t xmms_convert_get_channel_func(AFormat fmt,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
31 int output,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
32 int input);
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
33 convert_freq_func_t xmms_convert_get_frequency_func(AFormat fmt,
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
34 int channels);