summaryrefslogtreecommitdiff
path: root/src/audio/idct.cc
blob: 4566f99f1b696ebab038f1ae1aa63a9a8ac36954 (plain)
1
2
3
4
5
6
7
8
9
10
11
// This file is part of the 64k demo project.
// It implements the 512-point Inverse Discrete Cosine Transform.
// Used for real-time synthesis of audio from spectral data.

#include "dct.h"
#include "fft.h"

// Fast O(N log N) implementation using FFT
void idct_512(const float* input, float* output) {
  idct_fft(input, output, DCT_SIZE);
}