Skip to content

Commit

Permalink
Merge pull request #622 from hyranno/fix-asio-building-output-stream
Browse files Browse the repository at this point in the history
Fix ASIO driver.prepare_output_stream should take streams.input
  • Loading branch information
allthebestmoviestvshowslists9 committed Dec 7, 2021
2 parents 1cbde0d + b08f48d commit d98f7a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/host/asio/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d98f7a6

Please sign in to comment.