fix: driver.prepare_output_stream should take streams.input
This commit is contained in:
parent
59ee8ee057
commit
241b495f44
1 changed files with 2 additions and 2 deletions
|
|
@ -540,9 +540,9 @@ impl Device {
|
||||||
match streams.output {
|
match streams.output {
|
||||||
Some(ref output) => Ok(output.buffer_size as usize),
|
Some(ref output) => Ok(output.buffer_size as usize),
|
||||||
None => {
|
None => {
|
||||||
let output = streams.output.take();
|
let input = streams.input.take();
|
||||||
self.driver
|
self.driver
|
||||||
.prepare_output_stream(output, num_channels, buffer_size)
|
.prepare_output_stream(input, num_channels, buffer_size)
|
||||||
.map(|new_streams| {
|
.map(|new_streams| {
|
||||||
let bs = match new_streams.output {
|
let bs = match new_streams.output {
|
||||||
Some(ref out) => out.buffer_size as usize,
|
Some(ref out) => out.buffer_size as usize,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue