Mercurial > audlegacy-plugins
comparison src/crossfade/format.h @ 3059:2e241e90494a
Import work in progress xmms-crossfade rewrite.
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Fri, 24 Apr 2009 05:57:35 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
3058:2e649bf16ebc | 3059:2e241e90494a |
---|---|
1 /* | |
2 * XMMS Crossfade Plugin | |
3 * Copyright (C) 2000-2007 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 { | |
36 AFormat fmt; | |
37 gint rate; | |
38 gint nch; | |
39 | |
40 gint bps; /* format is valid if (bps > 0) */ | |
41 gboolean is_8bit; | |
42 gboolean is_swapped; | |
43 gboolean is_unsigned; | |
44 } | |
45 format_t; | |
46 | |
47 gboolean setup_format(AFormat fmt, gint rate, gint nch, format_t * format); | |
48 | |
49 gboolean format_match(AFormat fmt1, AFormat fmt2); | |
50 gchar *format_name(AFormat fmt); | |
51 | |
52 void format_copy(format_t * dest, format_t * src); | |
53 | |
54 #endif /* _FORMAT_H_ */ |