[vorbis] developing with libvorbis

Ed Sweetman ed.sweetman at wmich.edu
Wed Mar 26 19:01:09 PST 2003



Ed Sweetman wrote:
> 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.
> 

Ok, i tried looking for the right things to change so that it only 
decodes the remaining amount but i cant figure out what all needs to be 
changed to do it.  do i change convsize, and the size for fread or just 
convsize or what else?   the example decoder has a lot of explicit 
4096's instead of using static variables so it's hard to tell which are 
related to which.

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