Mercurial > audlegacy-plugins
comparison src/filewriter/filewriter.c @ 1651:fd29cb240417
updated FileWriter plugin
author | mf0102 <0102@gmx.at> |
---|---|
date | Fri, 07 Sep 2007 14:21:22 +0200 |
parents | 25ea2127eefa |
children | f6f5603a0954 62e89e392227 |
comparison
equal
deleted
inserted
replaced
1650:8d872d64e695 | 1651:fd29cb240417 |
---|---|
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; |