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

How often does the data_callback gets called? #933

Open
TornaxO7 opened this issue Dec 30, 2024 · 1 comment
Open

How often does the data_callback gets called? #933

TornaxO7 opened this issue Dec 30, 2024 · 1 comment

Comments

@TornaxO7
Copy link

Basically this one: https://docs.rs/cpal/0.15.3/cpal/traits/trait.DeviceTrait.html#method.build_input_stream
how often is it called? Am I able to configure it?

@TornaxO7
Copy link
Author

Bruh... regarding the "how often", I can simply use OutputCallbackInfo, however, is it somehow configureable how often (in the time domain) and with how much data the data callback should be called?

Assuming I've set the sample rate to 2048 for example. How can I calculate how many elements are always going to be in the data argument?

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