Mercurial > audlegacy-plugins
annotate src/filewriter/filewriter.h @ 1059:f305ebcc8136 trunk
[svn] - get rid of warnings.
author | yaz |
---|---|
date | Wed, 23 May 2007 22:40:57 -0700 |
parents | 4a693f5b7054 |
children | 1b52e7eacd4c |
rev | line source |
---|---|
984 | 1 /* FileWriter-Plugin |
2 * (C) copyright 2007 merging of Disk Writer and Out-Lame by Michael Färber | |
3 * | |
4 * Original Out-Lame-Plugin: | |
5 * (C) copyright 2002 Lars Siebold <khandha5@gmx.net> | |
6 * (C) copyright 2006-2007 porting to audacious by Yoshiki Yazawa <yaz@cc.rim.or.jp> | |
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, USA. | |
21 */ | |
22 | |
23 #ifndef FILEWRITER_H | |
24 #define FILEWRITER_H | |
25 | |
26 #include "config.h" | |
27 | |
28 #include <gtk/gtk.h> | |
29 #include <stdio.h> | |
30 #include <string.h> | |
31 | |
32 #include <audacious/plugin.h> | |
1011
4a693f5b7054
[svn] - replace xmms_remote_*() with playlist functions.
yaz
parents:
984
diff
changeset
|
33 #include <audacious/playlist.h> |
984 | 34 #include <audacious/configdb.h> |
35 #include <audacious/i18n.h> | |
36 #include <audacious/util.h> | |
37 #include <audacious/vfs.h> | |
38 | |
39 struct format_info { | |
40 AFormat format; | |
41 int frequency; | |
42 int channels; | |
43 } input; | |
44 | |
45 extern VFSFile *output_file; | |
46 extern guint64 written; | |
47 extern guint64 offset; | |
48 extern TitleInput *tuple; | |
49 | |
50 typedef struct _FileWriter FileWriter; | |
51 | |
52 struct _FileWriter | |
53 { | |
54 void (*init)(void); | |
55 void (*configure)(void); | |
56 gint (*open)(void); | |
57 void (*write)(void *ptr, gint length); | |
58 void (*close)(void); | |
59 gint (*free)(void); | |
60 gint (*playing)(void); | |
61 gint (*get_written_time)(void); | |
62 }; | |
63 | |
64 #endif |