Mercurial > audlegacy-plugins
annotate src/filewriter/filewriter.h @ 2201:df520f828dcf
Say goodbye to custom fileinfo dialog in madplug
author | Eugene Zagidullin <e.asphyx@gmail.com> |
---|---|
date | Sat, 01 Dec 2007 05:15:43 +0300 |
parents | 25ea2127eefa |
children | 4d6045c20cc5 6d08e3120615 |
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 | |
1441
1b52e7eacd4c
filewriter: new tuple API
William Pitcock <nenolod@atheme-project.org>
parents:
1011
diff
changeset
|
32 #include <audacious/main.h> |
984 | 33 #include <audacious/plugin.h> |
1011
4a693f5b7054
[svn] - replace xmms_remote_*() with playlist functions.
yaz
parents:
984
diff
changeset
|
34 #include <audacious/playlist.h> |
984 | 35 #include <audacious/configdb.h> |
36 #include <audacious/i18n.h> | |
37 #include <audacious/util.h> | |
38 #include <audacious/vfs.h> | |
39 | |
40 struct format_info { | |
41 AFormat format; | |
42 int frequency; | |
43 int channels; | |
1569
25ea2127eefa
filewriter: fix symbol collisions
William Pitcock <nenolod@atheme.org>
parents:
1441
diff
changeset
|
44 }; |
25ea2127eefa
filewriter: fix symbol collisions
William Pitcock <nenolod@atheme.org>
parents:
1441
diff
changeset
|
45 |
25ea2127eefa
filewriter: fix symbol collisions
William Pitcock <nenolod@atheme.org>
parents:
1441
diff
changeset
|
46 extern struct format_info input; |
984 | 47 |
48 extern VFSFile *output_file; | |
49 extern guint64 written; | |
50 extern guint64 offset; | |
1441
1b52e7eacd4c
filewriter: new tuple API
William Pitcock <nenolod@atheme-project.org>
parents:
1011
diff
changeset
|
51 extern Tuple *tuple; |
984 | 52 |
53 typedef struct _FileWriter FileWriter; | |
54 | |
55 struct _FileWriter | |
56 { | |
57 void (*init)(void); | |
58 void (*configure)(void); | |
59 gint (*open)(void); | |
60 void (*write)(void *ptr, gint length); | |
61 void (*close)(void); | |
62 gint (*free)(void); | |
63 gint (*playing)(void); | |
64 gint (*get_written_time)(void); | |
65 }; | |
66 | |
67 #endif |