From 097f7712a179dcc5a75b727bd8d84ba41b10a36f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Sun, 9 Apr 2023 13:27:14 +0200 Subject: =?UTF-8?q?delo=20v=20=C5=A1oli?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fourier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fourier.c') diff --git a/fourier.c b/fourier.c index d432f7b..6df913d 100644 --- a/fourier.c +++ b/fourier.c @@ -25,7 +25,7 @@ void add_sample (struct fourier * f, double received) { f->sums[frekvenca] += received*cpow(M_E, -2*M_PI*I*frekvence[frekvenca]*f->sample/f->rate); f->sums[frekvenca] -= f->samples[f->sample % SAMPLES]*cpow(M_E, -2*M_PI*I*frekvence[frekvenca]*(f->sample-SAMPLES)/f->rate); } - int najv[3] = { 0 }; + int najv[3] = { 0 }; // XXX refactor this to support roger_drugi decoding double val[3] = { 0 }; for (unsigned i = 0; i < FREKVENC; i++) for (int j = 0; j < 3; j++) { -- cgit v1.2.3