aboutsummaryrefslogtreecommitdiffstats
path: root/mumd/src/audio.rs
diff options
context:
space:
mode:
authorEskil Queseth <eskilq@kth.se>2021-06-19 20:07:17 +0200
committerEskil Queseth <eskilq@kth.se>2021-06-19 20:07:17 +0200
commit9002462953e7cba70d5aafee7ed2a87087252f49 (patch)
tree88c51f4f6cda71647ec5ed69cb3700d9bb7f4d5f /mumd/src/audio.rs
parentb2e9021341794ab52edcf4598c8d454515f758c4 (diff)
parent9aca7a8c930b179b6ae539234296f529928a3f3a (diff)
downloadmum-9002462953e7cba70d5aafee7ed2a87087252f49.tar.gz
Merge branch 'lints'
Diffstat (limited to 'mumd/src/audio.rs')
-rw-r--r--mumd/src/audio.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/mumd/src/audio.rs b/mumd/src/audio.rs
index 0424033..6860741 100644
--- a/mumd/src/audio.rs
+++ b/mumd/src/audio.rs
@@ -122,6 +122,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, ...).