shithub: pt2-clone

ref: f4fb11ccb42d5fd6ae7b73b8ed18f53fcad3be26
dir: /src/pt2_sinc.h/

View raw version
#pragma once

#include <stdint.h>
#include <stdbool.h>

#if defined __amd64__ || defined __i386__ || defined _WIN64 || defined _WIN32
#define SINC_TAPS 512
#else
#define SINC_TAPS 128
#endif

bool initSinc(double dCutoff); // 0.0 .. 0.999
double sinc(int16_t *smpPtr16, double dFrac);
void freeSinc(void);