With ASIO the driver will report a preferred buffer size, and I'm guessing this is what gets used when the default buffer size is chosen. It'd be nice to know what this value is before starting a stream.
Alternatively, one can use BufferSize::Fixed, but would need a way to query what that preferred buffer size is for some Host and Device.
Something like:
enum PreferredBufferSize {
/// Device doesn't provide this information
Unknown,
/// Device can provide this information
Fixed(usize),
}
let preferred_input_size = device.preferred_input_buffer_size();