History

calc_snr.c : Fix a compile problem when FFTW is not present.

Erik de Castro Lopo committed 21 years ago

Commit 55621541 parent a763e222 files · +5 −1Browse files

Unified · Split

2 files
  1. ChangeLog +3 −0
  2. tests/calc_snr.c +2 −1
ChangeLog+3−0
@@ -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
102005-04-18 Erik de Castro Lopo <erikd AT mega-nerd DOT com>132005-04-18 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
11 14
12 * configure.ac src/Makefile.am15 * configure.ac src/Makefile.am
tests/calc_snr.c+2−1
@@ -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
230double230double
231calculate_snr (float *data, int len)231calculate_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 */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t