[LAD] Zita Resampler unexpected output

Robin Gareus robin at gareus.org
Fri Feb 7 22:49:33 UTC 2014

On 02/07/2014 11:26 PM, André Garnier Coutinho wrote:
> Hi Guys!
> I was doing some tests to learn how to use zita resampler and I got an
> unexpected output. All the last positions of my output vector were 0 and I
> don't know why.
> Does anyone know what I am doing wrong?

Fons may have a detailed explanation. In code where I use zita-resampler
I do initially feed it with a cycle of zeroes.
Doing the same fixes the behaviour in your code.

see also <zita-resampler-src>/apps/zresample.cc
it also has a // Insert zero samples at start.

> I'm attaching my code.

I'm attaching a quick diff :)


PS. over.setup(..., 16)  is rather poor quality.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zrsp.diff
Type: text/x-patch
Size: 765 bytes
Desc: not available
URL: <http://lists.linuxaudio.org/pipermail/linux-audio-dev/attachments/20140207/0681883f/attachment.bin>

More information about the Linux-audio-dev mailing list