spectrogram : remove old FFT algorithm

Reuse the one embedded within ggwave through a static function
This commit is contained in:
Georgi Gerganov
2022-07-11 18:21:20 +03:00
parent 867eb1dfbb
commit d3d096ec2d
4 changed files with 41 additions and 96 deletions

View File

@@ -765,6 +765,19 @@ public:
//
bool computeFFTR(const float * src, float * dst, int N);
// Compute FFT of real values (static)
//
// src - input real-valued data, size is N
// dst - output complex-valued data, size is 2*N
// ip - work buffer, with size 2*N
// w - work buffer, with size 3 + sqrt(N/2)
//
// First time calling thid function, make sure that ip[0] == 0
// This will initialize some internal coefficients and store them in ip and w for
// future usage.
//
static bool computeFFTR(const float * src, float * dst, int N, int * ip, float * w);
// Resample audio waveforms from one sample rate to another using sinc interpolation
class Resampler {
public: