aboutsummaryrefslogtreecommitdiffstats
path: root/mumd/src/audio.rs
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2021-06-19 22:42:21 +0200
committerGustav Sörnäs <gustav@sornas.net>2021-06-19 22:42:21 +0200
commitaabf3a3b458b88eefd8b18ebc5ed9e593d4a694f (patch)
tree7029d7473ab30eab5fec866f65e736a26320dde8 /mumd/src/audio.rs
parent99ed190ca9691a46719c8a88d3f2437ba8e3c2ff (diff)
parent9002462953e7cba70d5aafee7ed2a87087252f49 (diff)
downloadmum-aabf3a3b458b88eefd8b18ebc5ed9e593d4a694f.tar.gz
Merge remote-tracking branch 'origin/main' into ogg
Diffstat (limited to 'mumd/src/audio.rs')
-rw-r--r--mumd/src/audio.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/mumd/src/audio.rs b/mumd/src/audio.rs
index fb22b44..bbaf2e1 100644
--- a/mumd/src/audio.rs
+++ b/mumd/src/audio.rs
@@ -17,6 +17,7 @@ use mumble_protocol::voice::{VoicePacket, VoicePacketPayload};
use mumble_protocol::Serverbound;
use mumlib::config::SoundEffect;
use std::collections::{hash_map::Entry, HashMap};
+use std::fmt::Debug;
use std::sync::{Arc, Mutex};
use tokio::sync::watch;
@@ -77,6 +78,16 @@ impl AudioInput {
}
}
+impl Debug for AudioInput {
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+ f.debug_struct("AudioInput")
+ .field("device", &self.device)
+ .field("channel_receiver", &"receiver")
+ .finish()
+ }
+}
+
+#[derive(Debug)]
/// Audio output state. The audio is received from each client over the network,
/// decoded, merged and finally played to an [AudioOutputDevice] (e.g. speaker,
/// headphones, ...).