mirror of
https://github.com/libretro/RetroArch
synced 2025-02-04 03:40:03 +00:00
Fix very stupid SINC bug.
Note to self: Don't write code when you're an emotional wreck.
This commit is contained in:
parent
30137e6106
commit
511995311f
@ -80,7 +80,7 @@ static void init_sinc_table(rarch_resampler_t *resamp)
|
||||
{
|
||||
for (int j = 0; j < TAPS; j++)
|
||||
{
|
||||
double p = (double)i / PHASES;
|
||||
double p = (double)i / (1 << PHASE_BITS);
|
||||
double sinc_phase = M_PI * (p + (SIDELOBES - 1 - j));
|
||||
|
||||
float val = CUTOFF * sinc(CUTOFF * sinc_phase) * lanzcos(sinc_phase / SIDELOBES);
|
||||
|
Loading…
x
Reference in New Issue
Block a user