summaryrefslogtreecommitdiff
path: root/src/audio/idct.cc
blob: 7a3c4892b80e27745691e5adb953f65d6c77a43c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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);
}

void imdct_512(const float* input, float* output) {
  imdct_fft(input, output, DCT_SIZE);
}