Mercurial > audlegacy-plugins
comparison src/filewriter/filewriter.h @ 2950:dcd8d93ba781
- mp3: adapted to lame-3.98. now filewriter writes valid TLEN.
- deleted unnecessary variable "written".
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Sat, 11 Oct 2008 02:02:41 +0900 |
parents | 11ef2164d90b |
children | 3134a0987162 |
comparison
equal
deleted
inserted
replaced
2949:0f0227b29f43 | 2950:dcd8d93ba781 |
---|---|
37 #include <audacious/util.h> | 37 #include <audacious/util.h> |
38 #include <audacious/vfs.h> | 38 #include <audacious/vfs.h> |
39 | 39 |
40 #include <libSAD/libSAD.h> | 40 #include <libSAD/libSAD.h> |
41 | 41 |
42 struct format_info { | 42 struct format_info { |
43 AFormat format; | 43 AFormat format; |
44 int frequency; | 44 int frequency; |
45 int channels; | 45 int channels; |
46 }; | 46 }; |
47 | 47 |
48 extern struct format_info input; | 48 extern struct format_info input; |
49 | 49 |
50 extern VFSFile *output_file; | 50 extern VFSFile *output_file; |
51 extern guint64 written; | |
52 extern guint64 offset; | 51 extern guint64 offset; |
53 extern Tuple *tuple; | 52 extern Tuple *tuple; |
54 | 53 |
55 typedef struct _FileWriter FileWriter; | |
56 | |
57 typedef gint (*write_output_callback)(void *ptr, gint length); | 54 typedef gint (*write_output_callback)(void *ptr, gint length); |
58 | 55 |
59 struct _FileWriter | 56 typedef struct _FileWriter |
60 { | 57 { |
61 void (*init)(write_output_callback write_output_func); | 58 void (*init)(write_output_callback write_output_func); |
62 void (*configure)(void); | 59 void (*configure)(void); |
63 gint (*open)(void); | 60 gint (*open)(void); |
64 void (*write)(void *ptr, gint length); | 61 void (*write)(void *ptr, gint length); |
66 void (*close)(void); | 63 void (*close)(void); |
67 gint (*free)(void); | 64 gint (*free)(void); |
68 gint (*playing)(void); | 65 gint (*playing)(void); |
69 gint (*get_written_time)(void); | 66 gint (*get_written_time)(void); |
70 AFormat format_required; | 67 AFormat format_required; |
71 }; | 68 } FileWriter; |
72 | 69 |
73 #endif | 70 #endif |