When is ogg_stream_pageout ever a even number? It's always either 0 or 1.<br><br><div class="gmail_quote">On Dec 13, 2007 4:33 PM, Ralph Giles <<a href="mailto:giles@xiph.org">giles@xiph.org</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Thu, Dec 13, 2007 at 04:17:32PM -1000, Jim Buschman wrote:<br><br>> no, i don't seem to ever get an eos page<br><br></div>Ok, so assuming you set eos properly when you submit the last buffer for
<br>compression, you're not writing out the last bit of the stream.<br><br>You need to loop on ogg_stream_pageout while it returns a positive<br>number and eos is not set, inside the while loop for getting new vorbis<br>
packets. Then, if you're out of data and still haven't seen eos you need<br>to while on ogg_stream_flush() to get the last bits out. Or you could<br>not bother checking; ogg_stream_flush() will just return 0 if there's
<br>no data left.<br><br>HTH,<br><font color="#888888"> -r<br></font></blockquote></div><br><br clear="all"><br>-- <br>~Jim