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