[vorbis] developing with libvorbis

Michael Smith msmith at labyrinth.net.au
Wed Mar 26 17:03:07 PST 2003



Ed Sweetman <ed.sweetman at wmich.edu> said:

> In the example decoder it writes data in varying lengths to stdout, is 
> it possible to alter the decoder to write the same length data to stdout 
> every time?  Rather, how would you alter the decoder to do that.  It 
> seems to be writing everything from 512 to 4096 bytes each time and i 
> cant really see why this is and how to change it.
> 

You can add an additional buffering layer after the decoder if you want, in
order to force writes of a specific length each time.

The writes depend on the block size of each vorbis audio packet decoded -
since vorbis has multiple block sizes, this varies - and the way the example
decoder is structured, it simply outputs the decoded audio from a single
packet each time.

Mike

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis mailing list