diff options
| author | Eskil Queseth <eskilq@kth.se> | 2021-06-19 20:07:17 +0200 |
|---|---|---|
| committer | Eskil Queseth <eskilq@kth.se> | 2021-06-19 20:07:17 +0200 |
| commit | 9002462953e7cba70d5aafee7ed2a87087252f49 (patch) | |
| tree | 88c51f4f6cda71647ec5ed69cb3700d9bb7f4d5f /mumd/src/audio.rs | |
| parent | b2e9021341794ab52edcf4598c8d454515f758c4 (diff) | |
| parent | 9aca7a8c930b179b6ae539234296f529928a3f3a (diff) | |
| download | mum-9002462953e7cba70d5aafee7ed2a87087252f49.tar.gz | |
Merge branch 'lints'
Diffstat (limited to 'mumd/src/audio.rs')
| -rw-r--r-- | mumd/src/audio.rs | 10 |
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, ...). |
