summaryrefslogtreecommitdiff
path: root/src/audio/fft.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/audio/fft.h')
-rw-r--r--src/audio/fft.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/audio/fft.h b/src/audio/fft.h
index 8c10afd..df37ad5 100644
--- a/src/audio/fft.h
+++ b/src/audio/fft.h
@@ -32,4 +32,11 @@ void dct_fft(const float* input, float* output, size_t N);
// N must be a power of 2
void idct_fft(const float* input, float* output, size_t N);
+// IMDCT via FFT
+// Input: input[] (length N) — MDCT coefficients
+// Output: output[] (length 2*N) — time-domain samples
+// Window output with Hann(2N) and OLA with hop N for perfect reconstruction.
+// N must be a power of 2
+void imdct_fft(const float* input, float* output, size_t N);
+
#endif /* AUDIO_FFT_H_ */