[vorbis] developing with libvorbis

Sune Foldager cryo at tiscali.dk
Wed Mar 26 18:06:22 PST 2003



On torsdag, mar 27, 2003, at 02:55 Europe/Copenhagen, Ed Sweetman wrote:

> except i get decodes that can go like this
>
> 2304
> 4096

But why do you do that? If you want 4096 in total, you would call the 
decoder the first time where 'left' is equal to 4096. So the decoder 
will at most return that much, and in this case returned 2304. 
Subtracting that from 'left', that variable is now 1792. Then we call 
the decoder again, passing that value. Now it will return _at most_ 
1792 bytes, and in fact WILL return that much unless it spans a frame. 
So it would never return 4096 like stated above.


-- 
Sune Foldager
DIKU - Department of Computer Science,
University of Copenhagen.

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