summaryrefslogtreecommitdiffstats
path: root/fourier.c
diff options
context:
space:
mode:
Diffstat (limited to 'fourier.c')
-rw-r--r--fourier.c2
1 files changed, 1 insertions, 1 deletions
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++) {