fix: driver.prepare_output_stream should take streams.input

This commit is contained in:
hyranno 2021-12-01 12:55:38 +09:00
parent 59ee8ee057
commit 241b495f44

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,