[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Sat, 21 Apr 2012 01:13:53 -0400
SiegeLord <slabode@xxxxxxxxxx> wrote:
> On 04/20/2012 09:35 PM, Peter Wang wrote:
> > Here's another test. In ex_synth.cpp reduce the stream frequency to
> > 8000 or 11025:
> >
> > #define STREAM_FREQUENCY (8000)
> >
> > then compile and turn on the sine wave generator.
> >
> > With the old resampling algorithm, there is a periodic crackle (bug)
> > but otherwise a clean tone. With the new algorithm, there is the
> > tone, the crackle, and a very obvious high pitched, "metallic"
> > noise component.
> >
> > Peter
>
> I could reproduce this, and I think I fixed it in revision 15555. I
> also observe the waveform in ex_resample_test to be much smoother.
>
Oh, good catch, didn't think of that. But then it should only have
happened with linear resampling. I also don't understand why it's not
reproducible here. Oh well, if this really fixes it I'll just conclude
that my ears or headphones are rather bad. Or that pulseaudio does some
unasked for post-processing, wouldn't surprise me the least.