[Speex-dev] noise from custom encoder/decoder

Thorvald Natvig thorvald at natvig.com
Mon Sep 14 03:57:03 PDT 2009


Tim Rijavec wrote:
> Hy,
>
> I'm totaly out of ideas now.
>
> here are links to the code I use.
>
> codec.cpp   http://barvanjekode.gama.us/temp/1078354945.html
> codec.h       http://barvanjekode.gama.us/temp/135707080.html
>
> Variables I use are:
> int samplerate 32000
> uint quality 10
> uint complexity = 2
>
> I get that wierd noise after I use speex encoder/decoder. It's like 
> there where empty spaces between each encoded packet but I can't see 
> that from my code.
> I copy/move memory properly.
>
> So, if there is anyone who understand what is the problem, please help 
> me :)

While I didn't look too closely, it looks like you're comparing 
encoderFrameSize (which is in number of frames, aka shorts) with 
"buffersize - pos" (which is in number of bytes).





More information about the Speex-dev mailing list