[Vorbis-dev] Vorbis raw packets
Ralph Giles
giles at xiph.org
Fri Oct 1 22:54:45 PDT 2004
On Sat, Oct 02, 2004 at 08:43:46AM +0300, Csonka Tibor wrote:
> What API can I use. Is there a sample somewhere?
vorbis_bitrate_flushpacket() returns an ogg_packet structure with
the encoded vorbis data. This includes the length and raw packet
data, which you can use directly instead of packing it into an
ogg stream.
see encoder_example.c in the vorbis source examples directory.
If you wanted to work with an already created ogg vorbis stream,
look at decoder_example.c You can use similar code;
ogg_stream_packetout() returns a similar ogg packet structure; just put
that into your other container instead of passing it to the vorbis
decoder as in the example.
Hope that helps,
-r
More information about the Vorbis-dev
mailing list