- ogg_stream_init (&state->os, state->serial);
- vorbis_info_init (&state->vi);
- vorbis_comment_init (&state->vc);
+ bytes = fread (buffer, 1, CHUNKSIZE, s->in);
+ total += bytes;
+
+ ogg_sync_wrote (&s->oy, bytes);
+ } while (ogg_sync_pageout (&s->oy, &og) != 1);
+
+ s->serial = ogg_page_serialno (&og);