Mercurial > audlegacy
comparison Plugins/Output/crossfade/format.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 * Verify format and setup a struct format_t | |
26 * Returns -1 if an illegal format has been specified | |
27 */ | |
28 | |
29 #ifndef __FORMAT_H__ | |
30 #define __FORMAT_H__ | |
31 | |
32 #include "crossfade.h" | |
33 | |
34 typedef struct { | |
35 AFormat fmt; | |
36 gint rate; | |
37 gint nch; | |
38 | |
39 gint bps; /* format is valid if (bps > 0) */ | |
40 gboolean is_8bit; | |
41 gboolean is_swapped; | |
42 gboolean is_unsigned; | |
43 } | |
44 format_t; | |
45 | |
46 gboolean setup_format(AFormat fmt, | |
47 gint rate, | |
48 gint nch, | |
49 format_t *format); | |
50 | |
51 gboolean format_match(AFormat fmt1, AFormat fmt2); | |
52 gchar * format_name (AFormat fmt); | |
53 | |
54 void format_copy(format_t *dest, format_t *src); | |
55 | |
56 #endif /* _FORMAT_H_ */ |