Mercurial > audlegacy-plugins
annotate src/filewriter/filewriter.h @ 2601:f9ccfae6a5f6
Oops, forgot to link scrobbler plugin with libaudutil. Fixed.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 21 May 2008 09:08:05 +0300 |
parents | bd3a24b39058 |
children | 5df83337516f |
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> | |
33 #include <audacious/i18n.h> | |
34 | |
35 struct format_info { | |
36 AFormat format; | |
37 int frequency; | |
38 int channels; | |
1569
25ea2127eefa
filewriter: fix symbol collisions
William Pitcock <nenolod@atheme.org>
parents:
1441
diff
changeset
|
39 }; |
25ea2127eefa
filewriter: fix symbol collisions
William Pitcock <nenolod@atheme.org>
parents:
1441
diff
changeset
|
40 |
25ea2127eefa
filewriter: fix symbol collisions
William Pitcock <nenolod@atheme.org>
parents:
1441
diff
changeset
|
41 extern struct format_info input; |
984 | 42 |
43 extern VFSFile *output_file; | |
44 extern guint64 written; | |
45 extern guint64 offset; | |
1441
1b52e7eacd4c
filewriter: new tuple API
William Pitcock <nenolod@atheme-project.org>
parents:
1011
diff
changeset
|
46 extern Tuple *tuple; |
984 | 47 |
48 typedef struct _FileWriter FileWriter; | |
49 | |
50 struct _FileWriter | |
51 { | |
52 void (*init)(void); | |
53 void (*configure)(void); | |
54 gint (*open)(void); | |
55 void (*write)(void *ptr, gint length); | |
56 void (*close)(void); | |
57 gint (*free)(void); | |
58 gint (*playing)(void); | |
59 gint (*get_written_time)(void); | |
60 }; | |
61 | |
62 #endif |