cpal
cpal copied to clipboard
How often does the `data_callback` gets called?
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?
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?