GNOME Bugzilla – Bug 656392
audioresample: add FFT based checks
Last modified: 2011-08-16 11:30:08 UTC
As requested earlier. The checks are pretty basic, but comparing FFTs of different sizes proved difficult (I tried doing some linear filtering to bring FFTs to the same size, but the value changes are so sudden I'd need to smooth a lot to avoid false negatives, which would make the test be very prone to false positives. There may be techniques for doing this kind of thing, but I'm FFT ignorant so comments welcome).
Created attachment 193686 [details] [review] audioresample: add FFT based checks Send a few simple tones through audioresample and check that the main frequency spot is the same for the input and the resampled output.
Created attachment 193694 [details] [review] Amended for comments: - merge the three macros - add a check that magnitude is about zero away from the hot spot
commit 505bae099e60b391dc97bc55039178610f5736ea Author: Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> Date: Fri Aug 12 12:07:32 2011 +0100 audioresample: add FFT based checks Send a few simple tones through audioresample and check that the main frequency spot is the same for the input and the resampled output. https://bugzilla.gnome.org/show_bug.cgi?id=656392
awesome