diff options
| author | Eskil Q <eskilq@kth.se> | 2021-01-02 15:05:52 +0100 |
|---|---|---|
| committer | Eskil Q <eskilq@kth.se> | 2021-01-02 15:05:52 +0100 |
| commit | 6e07c2bc4bba206e15bbe8838a322a5c506be9a1 (patch) | |
| tree | 8504a7a621d674a28b2233648067e06d0dcd4828 /mumd/src/audio/input.rs | |
| parent | b35a9c0a48f3f853b2d0e1551d33682189d77055 (diff) | |
| download | mum-6e07c2bc4bba206e15bbe8838a322a5c506be9a1.tar.gz | |
remove deps and make noise gate more efficent
Diffstat (limited to 'mumd/src/audio/input.rs')
| -rw-r--r-- | mumd/src/audio/input.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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<T: Sample>( mut input_sender: futures::channel::mpsc::Sender<f32>, @@ -12,7 +13,7 @@ pub fn callback<T: Sample>( .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); } } } |
