Open RadoBuransky opened 3 months ago
In case of variable src_ratio the caller must provide more (at least 2?) input samples otherwise ratio stays the same. I think the reason is linear interpolation on this line: https://github.com/libsndfile/libsamplerate/blob/4858fb016550d677de2356486bcceda5aed85a72/src/src_linear.c#L112
src_ratio
ratio
Basically priv->out_gen is 0 and therefore src_ratio = state->last_ratio until the end of times.
priv->out_gen
0
src_ratio = state->last_ratio
In case of variable
src_ratio
the caller must provide more (at least 2?) input samples otherwiseratio
stays the same. I think the reason is linear interpolation on this line: https://github.com/libsndfile/libsamplerate/blob/4858fb016550d677de2356486bcceda5aed85a72/src/src_linear.c#L112Basically
priv->out_gen
is0
and thereforesrc_ratio = state->last_ratio
until the end of times.