#include <vorbis/codec.h>
#include <vorbis/vorbisenc.h>
-/* Why oh why, oh why is it so difficult to read and write Ogg/Vorbis files. */
+#include "write_read.h"
/* The following function is basically a hacked version of the code in
* examples/encoder_example.c */
vorbis_dsp_state vd;
vorbis_block vb;
+ int eos = 0, ret;
+
if ((file = fopen (filename, "wb")) == NULL) {
printf("\n\nError : fopen failed : %s\n", strerror (errno)) ;
exit (1) ;
}
- int eos = 0, ret;
-
/********** Encode setup ************/
vorbis_info_init (&vi);