avfilter/window_func: change overlap for windows to match COLA

This commit is contained in:
Paul B Mahol 2024-10-09 15:00:11 +02:00
parent 4adc17a081
commit f75ac22e00

View File

@ -84,7 +84,7 @@ static inline void generate_window_func(float *lut, int N, int win_func,
case WFUNC_HAMMING:
for (n = 0; n < N; n++)
lut[n] = .54-.46*cos(2*M_PI*n/(N-1));
*overlap = 0.5;
*overlap = 0.75;
break;
case WFUNC_BLACKMAN:
for (n = 0; n < N; n++)
@ -113,7 +113,7 @@ static inline void generate_window_func(float *lut, int N, int win_func,
case WFUNC_BNUTTALL:
for (n = 0; n < N; n++)
lut[n] = 0.3635819-0.4891775*cos(2*M_PI*n/(N-1))+0.1365995*cos(4*M_PI*n/(N-1))-0.0106411*cos(6*M_PI*n/(N-1));
*overlap = 0.661;
*overlap = 0.75;
break;
case WFUNC_BHANN:
for (n = 0; n < N; n++)