[Vorbis-dev] Help recording from PCM stream and silence.

Ralph Giles giles at xiph.org
Thu Dec 13 17:34:12 PST 2007


Without seeing code, I'd suggest making sure you're flushing *all* the 
pages out of the ogg_stream and writing them out. Silence compresses 
well, so if you don't call 'ogg_stream_flush' you may not see a page for 
some time.

Note that for streamability you should always call ogg_stream_flush 
if ogg_stream_pageout hasn't returned a page in more than a couple 
seconds of input data. libogg isn't smart enough to handle this for you, 
and it can cause underruns when streaming.

 -r


More information about the Vorbis-dev mailing list