]> git.sesse.net Git - c64tapwav/blob - interpolate.cpp
Make the syncer slightly less memory-hungry.
[c64tapwav] / interpolate.cpp
1 #include "interpolate.h"
2
3 double lanczos_table[(LANCZOS_RADIUS * 2) * LANCZOS_RESOLUTION];
4
5 void make_lanczos_weight_table()
6 {
7         for (int i = 0; i < (LANCZOS_RADIUS * 2) * LANCZOS_RESOLUTION; ++i) {
8                 float x = double(i) / LANCZOS_RESOLUTION - LANCZOS_RADIUS;
9                 lanczos_table[i] = lanczos_weight(x);
10         }
11 }