Skip to content

Commit bc8d410

Browse files
committed
KissFFT compile errors in ESP 3.0
1 parent 4cf6be3 commit bc8d410

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/AudioLibs/AudioKissFFT.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#pragma once
22

3-
#include "kiss_fft.h"
3+
#include "kiss_fix.h"
44
#include "AudioFFT.h"
55

66
/**
@@ -9,7 +9,6 @@
99
* @brief FFT using KISS
1010
**/
1111

12-
1312
namespace audio_tools {
1413

1514
/**
@@ -21,7 +20,7 @@ namespace audio_tools {
2120
class FFTDriverKissFFT : public FFTDriver {
2221
public:
2322
bool begin(int len) override {
24-
if (p_fft_object==nullptr) p_fft_object = kiss_fft_alloc(len,0,nullptr,nullptr);
23+
if (p_fft_object==nullptr) p_fft_object = cpp_kiss_fft_alloc(len,0,nullptr,nullptr);
2524
if (p_data==nullptr) p_data = new kiss_fft_cpx[len];
2625
assert(p_fft_object!=nullptr);
2726
assert(p_data!=nullptr);
@@ -39,7 +38,7 @@ class FFTDriverKissFFT : public FFTDriver {
3938
}
4039

4140
void fft() override {
42-
kiss_fft (p_fft_object, p_data, p_data);
41+
cpp_kiss_fft (p_fft_object, p_data, p_data);
4342
};
4443

4544
float magnitude(int idx) override {

0 commit comments

Comments
 (0)