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:
commit
b9511a21a5
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue