Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

One input frame is not enough for variable ratio #221

Open
RadoBuransky opened this issue Jun 10, 2024 · 0 comments
Open

One input frame is not enough for variable ratio #221

RadoBuransky opened this issue Jun 10, 2024 · 0 comments

Comments

@RadoBuransky
Copy link

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:

src_ratio = state->last_ratio + priv->out_gen * (data->src_ratio - state->last_ratio) / priv->out_count ;

Basically priv->out_gen is 0 and therefore src_ratio = state->last_ratio until the end of times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant