Skip to content

Commit

Permalink
fix: driver.prepare_output_stream should take streams.input
Browse files Browse the repository at this point in the history
  • Loading branch information
allthebestmoviestvshowslists9 authored and hyranno committed Dec 1, 2021
1 parent 1cbde0d commit b08f48d
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 b08f48d

Please sign in to comment.