mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-09 06:51:44 +00:00
39dd7c1d08
=Version 3.23.03= FSQ and fixes for FSQ bugs. Various fixes for Olivia/Contestia, macro bug, WEFAX hang on INFO Added ifkp modem
19 lines
656 B
C++
19 lines
656 B
C++
--- src/ifkp/ifkp.cxx.orig 2015-10-02 23:20:08 UTC
|
|
+++ src/ifkp/ifkp.cxx
|
|
@@ -580,9 +580,12 @@ int ifkp::rx_process(const double *buf,
|
|
&rx_stream[IFKP_SHIFT_SIZE], // from
|
|
IFKP_BLOCK_SIZE*sizeof(*rx_stream)); // # bytes
|
|
memset(fft_data, 0, sizeof(fft_data));
|
|
- for (int i = 0; i < IFKP_BLOCK_SIZE; i++)
|
|
- fft_data[i].real() = fft_data[i].imag() =
|
|
- rx_stream[i] * a_blackman[i];
|
|
+ for (int i = 0; i < IFKP_BLOCK_SIZE; i++) {
|
|
+ fft_data[i].real(
|
|
+ rx_stream[i] * a_blackman[i]);
|
|
+ fft_data[i].imag(
|
|
+ rx_stream[i] * a_blackman[i]);
|
|
+ }
|
|
fft->ComplexFFT(fft_data);
|
|
process_tones();
|
|
}
|