comparison src/filewriter/vorbis.c @ 2774:f1f7ee810de8

add metadata to stream + flush() should do a real flush at least with mp3
author Andrew O. Shadoura <bugzilla@tut.by>
date Fri, 13 Jun 2008 04:58:39 +0300
parents 6d08e3120615
children 5df83337516f
comparison
equal deleted inserted replaced
2773:624e5ed793a5 2774:f1f7ee810de8
28 28
29 static void vorbis_init(write_output_callback write_output_func); 29 static void vorbis_init(write_output_callback write_output_func);
30 static void vorbis_configure(void); 30 static void vorbis_configure(void);
31 static gint vorbis_open(void); 31 static gint vorbis_open(void);
32 static void vorbis_write(gpointer data, gint length); 32 static void vorbis_write(gpointer data, gint length);
33 static void vorbis_flush(void);
33 static void vorbis_close(void); 34 static void vorbis_close(void);
34 static gint vorbis_free(void); 35 static gint vorbis_free(void);
35 static gint vorbis_playing(void); 36 static gint vorbis_playing(void);
36 static gint vorbis_get_written_time(void); 37 static gint vorbis_get_written_time(void);
37 static gint (*write_output)(void *ptr, gint length); 38 static gint (*write_output)(void *ptr, gint length);
40 { 41 {
41 vorbis_init, 42 vorbis_init,
42 vorbis_configure, 43 vorbis_configure,
43 vorbis_open, 44 vorbis_open,
44 vorbis_write, 45 vorbis_write,
46 vorbis_flush,
45 vorbis_close, 47 vorbis_close,
46 vorbis_free, 48 vorbis_free,
47 vorbis_playing, 49 vorbis_playing,
48 vorbis_get_written_time 50 vorbis_get_written_time
49 }; 51 };
205 } 207 }
206 208
207 olen += length; 209 olen += length;
208 } 210 }
209 211
212 static void vorbis_flush(void)
213 {
214 //nothing to do here yet. --AOS
215 }
216
210 static void vorbis_close(void) 217 static void vorbis_close(void)
211 { 218 {
212 ogg_stream_clear(&os); 219 ogg_stream_clear(&os);
213 220
214 vorbis_block_clear(&vb); 221 vorbis_block_clear(&vb);