[Vorbis-dev] Vorbis bistream definition / separation from ogg

Nico Sabbi nsabbi at tiscali.it
Thu Apr 28 11:38:26 PDT 2005


craig duncan wrote:

> Ralph Giles wrote:
>
>> Unfortunately it is some work to get the number of samples per frame 
>> (packet in vorbis terminology). The two possibly lengths are given as 
>> a simple field in the info header, but which on a given data packet 
>> uses is looked up through a table from the setup header, using the 
>> mode number at the start of the packet as an index. So you have to do 
>> a fast parse of the setup header to be able to determine this without 
>> doing a full decode.
>>
>> Hope that helps,
>>  -r
>
>
> Here's the function i used to get the number of samples in a vorbis 
> packet
> (as an aside, i see that the vorbis "frame" being referred to is being
> taken as synonymous with a vorbis packet... which isn't how i was
> thinking of it).


thanks very much!


More information about the Vorbis-dev mailing list