[Speex-dev] Decoded data all 0s

Shane Roylance shaneroylance at yahoo.com
Fri Feb 13 11:30:55 PST 2009

I am encoding and decoding a stream of data. The data comes in in 320 byte packets, these are encoded and I get back 38 from the speex_bits_write method. I am under the impression that this means 38 bytes got written to my output buffer.

The data to this point looks fine, but when I put the data through the decoder all the bytes come out as 0. 

So my first question is why is this happening, and a follow up to that is what should I expect from the decoder. Should the resulting buffer be about the same size as my original buffer (in this case 320 bytes)?

Thanks in advance


More information about the Speex-dev mailing list