Merge pull request #622 from hyranno/fix-asio-building-output-stream

Fix ASIO driver.prepare_output_stream should take streams.input
This commit is contained in:
est31 2021-12-07 09:33:32 +01:00 • committed by GitHub
commit b9511a21a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -540,9 +540,9 @@ impl Device {
match streams.output {
Some(ref output) => Ok(output.buffer_size as usize),
None => {
let output = streams.output.take();
let input = streams.input.take();
self.driver
.prepare_output_stream(output, num_channels, buffer_size)
.prepare_output_stream(input, num_channels, buffer_size)
.map(|new_streams| {
let bs = match new_streams.output {
Some(ref out) => out.buffer_size as usize,