[Speex-dev] noise from custom encoder/decoder

Tim Rijavec rico at gama.us
Tue Sep 15 01:08:22 PDT 2009


Hy,

i solved the problem.

here is the code http://barvanjekode.gama.us/temp/1850408584.html if someone
need it

the problem wasn't in comparing encoderFrameSize with "buffersize - pos" but
in one memcpy that wasn't necessary.

Lp, Tim
+--------------------------+
| email: rico at gama.us      |
| www:    http://gama.us   |
|--------------------------|
| tel:    00386 31 457 627 |
+--------------------------+



2009/9/14 Thorvald Natvig <thorvald at natvig.com>

> 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).
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20090915/094a6bf1/attachment.htm 


More information about the Speex-dev mailing list