From 241b495f44800d408a632c0ec0914b80801daae8 Mon Sep 17 00:00:00 2001 From: hyranno Date: Wed, 1 Dec 2021 12:55:38 +0900 Subject: [PATCH] fix: driver.prepare_output_stream should take streams.input --- src/host/asio/stream.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/host/asio/stream.rs b/src/host/asio/stream.rs index 976d37b..3a9d2bc 100644 --- a/src/host/asio/stream.rs +++ b/src/host/asio/stream.rs @@ -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,