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 Shane
Start by getting sampleenc.c and sampledec.c to work and then try to understand what you're doing differently. That's the best way to get started. Jean-Marc Shane Roylance a ?crit :> 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 > Shane > > > > _______________________________________________ > Speex-dev mailing list > Speex-dev at xiph.org > http://lists.xiph.org/mailman/listinfo/speex-dev > >