summaryrefslogtreecommitdiffstats
path: root/apps/plugins/fft
diff options
context:
space:
mode:
authorDave Hooper <dave@beermex.com>2010-02-22 23:45:38 +0000
committerDave Hooper <dave@beermex.com>2010-02-22 23:45:38 +0000
commitf7a30a4b081537e3908bec72bbc4312e76f28ab9 (patch)
treed07095031d4ee6dce1e87dc1c2fce69a6f099b40 /apps/plugins/fft
parent0b7dcd69c801a7439de5bfc53ae4005ec3846634 (diff)
downloadrockbox-f7a30a4b081537e3908bec72bbc4312e76f28ab9.tar.gz
rockbox-f7a30a4b081537e3908bec72bbc4312e76f28ab9.zip
kiss_fftr appears to perform two real-valued ffts in parallel -- so feed it only one signal of size N/2 (as opposed to splitting a single signal of size N into two interleaved parts which is what it seemed to be doing before)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24865 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/fft')
-rw-r--r--apps/plugins/fft/fft.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/plugins/fft/fft.c b/apps/plugins/fft/fft.c
index 93568ab156..f57d2ab4dd 100644
--- a/apps/plugins/fft/fft.c
+++ b/apps/plugins/fft/fft.c
@@ -1057,6 +1057,8 @@ void input_thread_entry(void)
input[fft_idx] = left;
fft_idx++;
+ input[fft_idx] = 0;
+ fft_idx++;
if (fft_idx == ARRAYSIZE_IN)
break;