From ccfbeb6d52c554616c232a9b343ebb4ecd5e3975 Mon Sep 17 00:00:00 2001 From: Ando Date: Wed, 4 Dec 2024 14:55:27 +1100 Subject: [PATCH] fix test --- src/sink.rs | 2 +- src/source/channel_volume.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sink.rs b/src/sink.rs index 7c8e9f14..6925fbe6 100644 --- a/src/sink.rs +++ b/src/sink.rs @@ -452,7 +452,7 @@ mod tests { fn test_channel_volume() { use crate::source::ChannelVolume; - let (sink, mut queue_rx) = Sink::new_idle(); + let (sink, mut queue_rx) = Sink::new(); let v = vec![100.0f32]; let input = SamplesBuffer::new(1, 48000, v.clone()); diff --git a/src/source/channel_volume.rs b/src/source/channel_volume.rs index e8536eb7..0315d25e 100644 --- a/src/source/channel_volume.rs +++ b/src/source/channel_volume.rs @@ -154,7 +154,7 @@ mod test { use super::*; use crate::buffer::SamplesBuffer; - use crate::source::{from_iter, Source}; + use crate::source::Source; #[test] fn test_channel_volume_iterator() {