Mercurial > audlegacy
comparison Plugins/Output/crossfade/convert.h @ 259:88b38e2414a1 trunk
[svn] First attempt at porting the crossfade plugin; patches from bug #363 applied, GThreadified, includes fixed. Will most probably not compile as of yet.
author | chainsaw |
---|---|
date | Sun, 04 Dec 2005 15:58:55 -0800 |
parents | |
children | 5b81b0f310e5 |
comparison
equal
deleted
inserted
replaced
258:f4a57eac3ba3 | 259:88b38e2414a1 |
---|---|
1 /* | |
2 * XMMS Crossfade Plugin | |
3 * Copyright (C) 2000-2004 Peter Eisenlohr <peter@eisenlohr.org> | |
4 * | |
5 * based on the original OSS Output Plugin | |
6 * Copyright (C) 1998-2000 Peter Alm, Mikael Alm, Olle Hallnas, Thomas Nilsson and 4Front Technologies | |
7 * | |
8 * This program is free software; you can redistribute it and/or modify | |
9 * it under the terms of the GNU General Public License as published by | |
10 * the Free Software Foundation; either version 2 of the License, or | |
11 * (at your option) any later version. | |
12 * | |
13 * This program is distributed in the hope that it will be useful, | |
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 * GNU General Public License for more details. | |
17 * | |
18 * You should have received a copy of the GNU General Public License | |
19 * along with this program; if not, write to the Free Software | |
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, | |
21 * USA. | |
22 */ | |
23 | |
24 /* | |
25 * Convert to standard (44100/16bit-le/stereo) | |
26 */ | |
27 | |
28 #ifndef __CONVERT_H__ | |
29 #define __CONVERT_H__ | |
30 | |
31 #include "crossfade.h" | |
32 #include "format.h" | |
33 | |
34 typedef struct | |
35 { | |
36 gpointer data; | |
37 gint size; | |
38 } | |
39 convert_context_t; | |
40 | |
41 void convert_init(convert_context_t *cc); | |
42 gint convert_flow(convert_context_t *cc, | |
43 gpointer *buffer, | |
44 gint length, | |
45 format_t *format); | |
46 void convert_free(convert_context_t *cc); | |
47 | |
48 #endif /* _CONVERT_H_ */ |