This fixes a number of issues with the standalone audio backends. (This is an alternative PR for #23).
- The CPAL backend has been reworked to use the
fixed_resamplecrate for synchronizing samples between the input and output audio streams. This should fix deadlock issues and improve performance. - The CPAL backend no longer panics if given a buffer larger than the requested buffer size.
- The Jack backend now uses a minimum "max_buffer_size" of 2048 to help avoid early aborts on misbehaving Jack backends.
- Added new fields to the standalone WrapperConfig:
input_latency,input_capacity, andmidi_capacity.
This fixes a number of issues with the standalone audio backends. (This is an alternative PR for #23).
* The CPAL backend has been reworked to use the `fixed_resample` crate for synchronizing samples between the input and output audio streams. This should fix deadlock issues and improve performance.
* The CPAL backend no longer panics if given a buffer larger than the requested buffer size.
* The Jack backend now uses a minimum "max_buffer_size" of 2048 to help avoid early aborts on misbehaving Jack backends.
* Added new fields to the standalone WrapperConfig: `input_latency`, `input_capacity`, and `midi_capacity`.