[vorbis] developing with libvorbis
Ed Sweetman
ed.sweetman at wmich.edu
Wed Mar 26 18:32:41 PST 2003
Sune Foldager wrote:
> 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.
>
ok, i see what you mean. I'm doing this from within the decoder loop,
hence the miscommunication.
--- >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