cpal icon indicating copy to clipboard operation
cpal copied to clipboard

How often does the `data_callback` gets called?

Open TornaxO7 opened this issue 1 year ago • 1 comments

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 avatar Dec 30 '24 22:12 TornaxO7

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?

TornaxO7 avatar Dec 30 '24 22:12 TornaxO7