void FFTFrame::doPaddedFFT(const float* data, size_t dataSize) { // Zero-pad the impulse response AudioFloatArray paddedResponse(fftSize()); // zero-initialized paddedResponse.copyToRange(data, 0, dataSize); // Get the frequency-domain version of padded response doFFT(paddedResponse.data()); }
const FLOAT_DMEM * cSmileUtilWindowedMagnitudeSpectrum::getMagnitudes( const FLOAT_DMEM *in, long Nin, bool allowWinSmaller = false) { copyInputAndZeropad(in, Nin, allowWinSmaller); doFFT(); computeMagnitudes(); // TODO: convert fftWork to right pointer type upon return!!!! // This is a temp hack to make the compiler happy, but it breaks the compontnt!! return (FLOAT_DMEM*)fftWork_; }