[Vorbis] Random Writes

Ralph Giles giles at xiph.org
Tue May 27 09:53:45 PDT 2008


On 26-May-08, at 8:37 PM, Greycode wrote:

> VBR does make this more interesting. Is there any
> dependencies on previous input?

Yes. Vorbis is a lapped-block codec, so each packet depends on the  
previous one. Also iirc the reference encoder has a three block  
latency for analysis. So you need to encode more than ~10 blocks in a  
row to get reasonable output.

A lot of games do playback of short vorbis-compressed sounds and  
loops. There's a "crosslapped" api entry for mixing across the  
boundaries. If that helps at all...

  -r



More information about the Vorbis mailing list