aboutsummaryrefslogtreecommitdiffstats
path: root/mumd/src/audio
diff options
context:
space:
mode:
Diffstat (limited to 'mumd/src/audio')
-rw-r--r--mumd/src/audio/input.rs3
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);
}
}
}