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

Optimize Resampler when ratio is 1 #121

Open
MarkKremer opened this issue Oct 16, 2023 · 0 comments
Open

Optimize Resampler when ratio is 1 #121

MarkKremer opened this issue Oct 16, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@MarkKremer
Copy link
Contributor

Instead of resampling the data, Resampler could pass on the samples as-is when the resample ratio is exactly 1. This could happen, for instance, when the Doppler node measures a constant distance between the audio source and the observer (the audio waves are neither compressed nor stretched).

Still, the buffers must be filled the correct way when doing this in case the ratio becomes non-zero and the previous samples are needed for resampling.

@MarkKremer MarkKremer added the enhancement New feature or request label Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant