comparison src/filewriter/filewriter.c @ 1693:62e89e392227

Branch merge.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 08 Sep 2007 06:58:08 +0300
parents d158ce84fda7 fd29cb240417
children f35f9d6fcb6d
comparison
equal deleted inserted replaced
1692:81ae3fcc9673 1693:62e89e392227
90 static gint file_get_output_time(void); 90 static gint file_get_output_time(void);
91 static void file_configure(void); 91 static void file_configure(void);
92 92
93 OutputPlugin file_op = 93 OutputPlugin file_op =
94 { 94 {
95 NULL, 95 .description = "FileWriter Plugin",
96 NULL, 96 .init = file_init,
97 "FileWriter Plugin", 97 .about = file_about,
98 file_init, 98 .configure = file_configure,
99 NULL, 99 .open_audio = file_open,
100 file_about, 100 .write_audio = file_write,
101 file_configure, 101 .close_audio = file_close,
102 NULL, 102 .flush = file_flush,
103 NULL, 103 .pause = file_pause,
104 file_open, 104 .buffer_free = file_free,
105 file_write, 105 .buffer_playing = file_playing,
106 file_close, 106 .output_time = file_get_output_time,
107 file_flush, 107 .written_time = file_get_written_time
108 file_pause,
109 file_free,
110 file_playing,
111 file_get_output_time,
112 file_get_written_time,
113 NULL
114 }; 108 };
115 109
116 OutputPlugin *file_oplist[] = { &file_op, NULL }; 110 OutputPlugin *file_oplist[] = { &file_op, NULL };
117 111
118 DECLARE_PLUGIN(filewriter, NULL, NULL, NULL, file_oplist, NULL, NULL, NULL, NULL); 112 SIMPLE_OUTPUT_PLUGIN(filewriter, file_oplist);
119 113
120 static void set_plugin(void) 114 static void set_plugin(void)
121 { 115 {
122 if (fileext < 0 || fileext >= FILEEXT_MAX) 116 if (fileext < 0 || fileext >= FILEEXT_MAX)
123 fileext = 0; 117 fileext = 0;