[Vorbis] Hi friends

Ralph Giles giles at xiph.org
Tue Sep 8 09:37:13 PDT 2009


On Tue, Sep 8, 2009 at 12:12 AM,
krishnakumar<krishnakumar at matrixview.com> wrote:

> I want to do encoding concurrently while recording.
> Help me how to pass the memory input to the Vorbis encoding engine.

Take a look at encoder_example.c included with the libvorbis source.
You want to replace the code that reads the audio buffer from a file
with code to copy it from your capture buffer. You will probably want
to maintain a ring buffer for this to allow for some separation
between the capture and encoding threads.

HTH,
 -r


More information about the Vorbis mailing list