[Vorbis-dev] Fwd: Newbie q: decoupling vorbis from ogg

Nathaniel Gray n8gray at gmail.com
Thu Sep 15 01:13:18 PDT 2005


On 9/15/05, Conrad Parker <conrad at metadecks.org> wrote:
> On Thu, Sep 15, 2005 at 12:08:20AM -0700, Nathaniel Gray wrote:
> >
> > and now (assuming it worked) I have a nice ogg_packet to feed to
> > vorbis_synthesis(...).  If, on the other hand, I'm completely
> > disconnected from the container format and just have a buffer
> > containing one or more raw vorbis packets (as I believe will be the
> > case in the AudioCodec) is there a comparably simple way to get the
> > ogg_packet struct filled out?  Or perhaps this is where the bitpacker
> > ceases to be an internal dependency and I have to start reading the
> > vorbis spec closely... :-/
> 
> you could also try using libfishsound, which has been designed for use
> in frameworks where the mux and decode/encode stages are handled
> separately:
> 
>   http://www.annodex.net/software/libfishsound/
> 
> It wraps up most of the libvorbis API behind a callback interface, so
> you just feed it encoded data and get PCM out, or vice-versa.
> 
> This is what illiminable's DirectShow filters use for Vorbis, and it'll
> soon be in libsndfile too. Some people have said that it makes programming
> somewhat easier; it takes care of many corner cases, and also gives you
> Speex support for free :)

Ah!  I was hoping maybe somebody had already done the hard work for
me...  :-)  That sounds perfect for an AudioCodec.  I'll take a look.

Thanks,
-n8

-- 
>>>-- Nathaniel Gray -- Caltech Computer Science ------>
>>>-- Mojave Project -- http://mojave.cs.caltech.edu -->


More information about the Vorbis-dev mailing list