// This file is part of the 64k demo project. // It defines constants and shared structures for DCT operations. // The demo uses a 512-point DCT for spectral synthesis. #pragma once #define DCT_SIZE 512 #define OLA_HOP_SIZE 256 #define OLA_OVERLAP 256 // Forward declarations void fdct_512(const float* input, float* output); void idct_512(const float* input, float* output); // IMDCT: N=512 coefficients -> 2*DCT_SIZE=1024 samples. // Window with Hann(1024) and OLA with hop DCT_SIZE for perfect reconstruction. void imdct_512(const float* input, float* output);