MCPcopy Create free account
hub / github.com/LabSound/LabSound / doPaddedFFT

Method doPaddedFFT

src/internal/src/FFTFrame.cpp:21–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19typedef std::complex<double> Complex;
20
21void FFTFrame::doPaddedFFT(const float * data, int dataSize)
22{
23 // Zero-pad the impulse response
24 AudioFloatArray paddedResponse(fftSize()); // zero-initialized
25 paddedResponse.copyToRange(data, 0, dataSize);
26
27 // Get the frequency-domain version of padded response
28 computeForwardFFT(paddedResponse.data());
29}
30
31std::unique_ptr<FFTFrame> FFTFrame::createInterpolatedFrame(const FFTFrame & frame1, const FFTFrame & frame2, double x)
32{

Callers 1

HRTFKernelMethod · 0.80

Calls 2

copyToRangeMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected