From 6e07c2bc4bba206e15bbe8838a322a5c506be9a1 Mon Sep 17 00:00:00 2001 From: Eskil Q Date: Sat, 2 Jan 2021 15:05:52 +0100 Subject: remove deps and make noise gate more efficent --- mumd/src/audio/input.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mumd/src/audio') diff --git a/mumd/src/audio/input.rs b/mumd/src/audio/input.rs index 9ea82e0..da6dc61 100644 --- a/mumd/src/audio/input.rs +++ b/mumd/src/audio/input.rs @@ -1,5 +1,6 @@ use cpal::{InputCallbackInfo, Sample}; use tokio::sync::watch; +use log::*; pub fn callback( mut input_sender: futures::channel::mpsc::Sender, @@ -12,7 +13,7 @@ pub fn callback( .map(|e| e.to_f32()) .map(|e| e * input_volume) { if let Err(_e) = input_sender.try_send(sample) { - // warn!("Error sending audio: {}", e) + warn!("Error sending audio: {}", _e); } } } -- cgit v1.2.1