[LAD] Zita Resampler unexpected output

2014-02-07 Thread André Garnier Coutinho
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. I have copied the main files of zita resampler to my home directory. The files were resampler.cc, resampler-tables.cc, vresamp

Re: [LAD] Zita Resampler unexpected output

2014-02-07 Thread Robin Gareus
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

Re: [LAD] Zita Resampler unexpected output

2014-02-07 Thread Robin Gareus
On 02/07/2014 11:49 PM, Robin Gareus wrote: >> I'm attaching my code. > > I'm attaching a quick diff :) I'm sorry. It turns out, I only got this half right (wrong number of samples to line things up). Just read the API documenation, explains it all: http://kokkinizita.linuxaudio.org/linuxaudio/z

Re: [LAD] Zita Resampler unexpected output

2014-02-07 Thread Fons Adriaensen
On Sat, Feb 08, 2014 at 12:00:56AM +0100, Robin Gareus wrote: > I'm sorry. It turns out, I only got this half right (wrong number of > samples to line things up). Just read the API documenation, explains it > all: > http://kokkinizita.linuxaudio.org/linuxaudio/zita-resampler/resampler.html I've

Re: [LAD] Zita Resampler unexpected output

2014-02-12 Thread André Garnier Coutinho
Hey guys, I've read the API documentation and I realize that I wasn't completing the input buffer with some zeros. So, I tried to add those zeros, but I'm still having an unexpected output. I'm attaching the code that I wrote, I would be very happy if anyone could say what I am doing wrong. gree

Re: [LAD] Zita Resampler unexpected output

2014-02-12 Thread Robin Gareus
On 02/12/2014 09:29 PM, André Garnier Coutinho wrote: [..] > over.inp_data = 0; [..] You cannot use a NULL pointer. It needs to point to an array filled with zeroes. ___ Linux-audio-dev mailing list Linux-audio-dev@lists.linuxaudio.org http://lists.linux

Re: [LAD] Zita Resampler unexpected output

2014-02-12 Thread Robin Gareus
On 02/12/2014 09:34 PM, Robin Gareus wrote: > On 02/12/2014 09:29 PM, André Garnier Coutinho wrote: > [..] >> over.inp_data = 0; > [..] > > You cannot use a NULL pointer. It needs to point to an array filled with > zeroes. mmh. I'm sorry. I was too quck and wrong, again :( zita-resampler-1.3.0/l

Re: [LAD] Zita Resampler unexpected output

2014-02-12 Thread Fons Adriaensen
On Wed, Feb 12, 2014 at 09:34:14PM +0100, Robin Gareus wrote: > On 02/12/2014 09:29 PM, André Garnier Coutinho wrote: > [..] > > over.inp_data = 0; > [..] > > You cannot use a NULL pointer. It needs to point to an array filled with > zeroes. Wrong, you *can* use a NULL pointer. TRY1 _looks_ OK

Re: [LAD] Zita Resampler unexpected output

2014-02-12 Thread Fons Adriaensen
On Wed, Feb 12, 2014 at 09:37:01PM +0100, Robin Gareus wrote: > /me crawls back under his stone. (C) stackingdwarves.net IIRC :-) -- FA A world of exhaustive, reliable metadata would be an utopia. It's also a pipe-dream, founded on self-delusion, nerd hubris and hysterically inflated market o

Re: [LAD] Zita Resampler unexpected output

2014-02-12 Thread Fons Adriaensen
On Wed, Feb 12, 2014 at 06:29:24PM -0200, André Garnier Coutinho wrote: > I'm attaching the code that I wrote, I would be very happy if anyone could > say what I am doing wrong. #ifdef TRY1 int z1 = over.inpsize()/2 - 1; int z2 = over.inpsize()/2; over.inp_count = z1;

Re: [LAD] Zita Resampler unexpected output

2014-02-13 Thread André Garnier Coutinho
Thank you very much, guys, you helped a lot. Now it's working well, with the little 'transient' at the end. I have only one doubt: will this little 'transient' disturb the result if I use it for a real-time application, like a lv2 distortion plugin? greets 2014-02-12 19:25 GMT-02:00 Fons Adriae

Re: [LAD] Zita Resampler unexpected output

2014-02-13 Thread Jörn Nettingsmeier
On 02/12/2014 10:25 PM, Fons Adriaensen wrote: On Wed, Feb 12, 2014 at 09:37:01PM +0100, Robin Gareus wrote: /me crawls back under his stone. (C) stackingdwarves.net IIRC :-) you mean i own the rights to being stupid in public? wow, i'll be rich as standard oil :-D cue evil laugh with che

Re: [LAD] Zita Resampler unexpected output

2014-02-13 Thread Fons Adriaensen
On Thu, Feb 13, 2014 at 05:24:52PM +0100, Jörn Nettingsmeier wrote: > On 02/12/2014 10:25 PM, Fons Adriaensen wrote: > >On Wed, Feb 12, 2014 at 09:37:01PM +0100, Robin Gareus wrote: > > > >>/me crawls back under his stone. > > > >(C) stackingdwarves.net IIRC :-) > > you mean i own the rights to be

Re: [LAD] Zita Resampler unexpected output

2014-02-13 Thread Fons Adriaensen
On Thu, Feb 13, 2014 at 01:32:47PM -0200, André Garnier Coutinho wrote: > I have only one doubt: will this little 'transient' disturb the result if I > use it for a real-time application, like a lv2 distortion plugin? No, why should it ? It's the correct result, not some error. Going back to th

Re: [LAD] Zita Resampler unexpected output

2014-02-14 Thread André Garnier Coutinho
Thank you very much, guys You really helped a lot =) greets 2014-02-13 17:19 GMT-02:00 Fons Adriaensen : > On Thu, Feb 13, 2014 at 01:32:47PM -0200, André Garnier Coutinho wrote: > > > I have only one doubt: will this little 'transient' disturb the result > if I > > use it for a real-time appli