mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 09:40:06 +00:00
C89_BUILD buildfix
This commit is contained in:
parent
a974cef001
commit
78f4e0abda
@ -752,12 +752,13 @@ static void sinc_init_table_kaiser(rarch_sinc_resampler_t *resamp,
|
|||||||
{
|
{
|
||||||
for (j = 0; j < taps; j++)
|
for (j = 0; j < taps; j++)
|
||||||
{
|
{
|
||||||
|
float val;
|
||||||
double sinc_phase;
|
double sinc_phase;
|
||||||
int n = j * phases + i;
|
int n = j * phases + i;
|
||||||
double window_phase = (double)n / (phases * taps); /* [0, 1). */
|
double window_phase = (double)n / (phases * taps); /* [0, 1). */
|
||||||
window_phase = 2.0 * window_phase - 1.0; /* [-1, 1) */
|
window_phase = 2.0 * window_phase - 1.0; /* [-1, 1) */
|
||||||
sinc_phase = sidelobes * window_phase;
|
sinc_phase = sidelobes * window_phase;
|
||||||
float val = cutoff * sinc(M_PI * sinc_phase * cutoff) *
|
val = cutoff * sinc(M_PI * sinc_phase * cutoff) *
|
||||||
besseli0(kaiser_beta * sqrtf(1 - window_phase * window_phase))
|
besseli0(kaiser_beta * sqrtf(1 - window_phase * window_phase))
|
||||||
/ window_mod;
|
/ window_mod;
|
||||||
phase_table[i * stride * taps + j] = val;
|
phase_table[i * stride * taps + j] = val;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user