[speex-dev] Where to pause stream (minimum decodable length)?

Robert M. robert.m at ib-caddy.si
Fri May 16 01:03:31 PDT 2003



Here is my situation:

I have large Speex encoded stream which I would like to playback on wave 
out device. I could decode whole stream to pcm and play it back as pcm 
audio, but this is not what I want. Instead I want to decode minimum 
decodable bits (bytes?) to pcm and play it ... then decode another 
minimum data chunk and play it, etc. This way I can achieve closest to 
real-time playback or I can pause and then restart playback. So, my 
question is: What is minimum length of Speex encoded data where decoder 
(speex_decode)  will still successfully decode input data? In Windows 
terminology this is called BlockAlign. The block alignment is the 
minimum atomic unit of data the playback and record software must 
process at a time .

BTW, the sample provided is using frame_size*channels but I don't think 
this is the minimum.

P.S. I need this for my ACM codec driver I'm working on.

Robert M.

<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 'speex-dev-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 Speex-dev mailing list