Hi Mark,
What happens is really strange...
In fact, with the DLL, I always use a 44100 resample... And I always get
clicks !
I have files with in_Samplerate at 22050 and 44100.
When I try to set ReSamplerate at 0, it seems to resample anyway...
Thanks
Gabriel
----- Original Message -----
From: Mark Taylor <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 05, 2000 7:22 PM
Subject: Re: [MP3 ENCODER] Upsampling
>
> >
> > Hi Mark,
> >
> > My compilation of the DLL 3.68 produces exactly the same result :-(
> > May be my compilator isn't well configured for that...
> > Does anybody else compile it ?
> >
> > Gabriel
> >
>
> You have probably discovered yet another problem, since most
> users probably nevever use that code for upsampling.
>
> The clicks that Scott found were cased by short int overflow, but
> the new code looks like this:
>
> value = floor(.5 +
> -y0*x1*x2*x3/6 + y1*x0*x2*x3/2 - y2*x0*x1*x3/2 +y3*x0*x1*x2/6
> );
> if (value > 32767) outbuf[k]=32767;
> else if (value < -32767) outbuf[k]=-32767;
> else outbuf[k]=value;
>
> So I dont see how it could overflow?
>
> If you can send me a sample wav file, I will try and reproduce the
problem.
>
> Mark
> --
> MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )
--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )