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

Conrad Parker conrad at metadecks.org
Thu Sep 15 00:22:54 PDT 2005


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 :)

cheers,

Conrad.


More information about the Vorbis-dev mailing list