Unified · Split
| @@ -7,6 +7,9 @@ · 6 unmodified lines | ||
| 7 | 7 | Improve calculation of input_index. |
| 8 | 8 | Fix updating of input_index (thanks to Stas Sergeev). |
| 9 | 9 | |
| 10 | + * tests/calc_snr.c | |
| 11 | + Fix a compile problem when FFTW is not present (thanks to Stas Sergeev). | |
| 12 | + | |
| 10 | 13 | 2005-04-18 Erik de Castro Lopo <erikd AT mega-nerd DOT com> |
| 11 | 14 | |
| 12 | 15 | * configure.ac src/Makefile.am |
| @@ -228,11 +228,12 @@ log_mag_spectrum (double *input, int len, double *magnitude) · 227 unmodified lines | ||
| 228 | 228 | #else /* ! (HAVE_LIBFFTW && HAVE_LIBRFFTW) */ |
| 229 | 229 | |
| 230 | 230 | double |
| 231 | −calculate_snr (float *data, int len) | |
| 231 | +calculate_snr (float *data, int len, int expected_peaks) | |
| 232 | 232 | { double snr = 200.0 ; |
| 233 | 233 | |
| 234 | 234 | data = data ; |
| 235 | 235 | len = len ; |
| 236 | + expected_peaks = expected_peaks ; | |
| 236 | 237 | |
| 237 | 238 | return snr ; |
| 238 | 239 | } /* calculate_snr */ |