finally fixed the waterfall7

This commit is contained in:
Ryzerth
2020-11-04 04:11:51 +01:00
parent 3156236745
commit ef968ac1fb
11 changed files with 97 additions and 17 deletions

View File

@ -48,6 +48,10 @@ int fftSize = 8192 * 8;
std::vector<float> _data;
std::vector<float> fftTaps;
void fftHandler(dsp::complex_t* samples, int count, void* ctx) {
if (count < fftSize) {
return;
}
memcpy(fft_in, samples, count * sizeof(dsp::complex_t));
fftwf_execute(p);
int half = fftSize / 2;