From 47c3c5ca605fc8f2558ddb612bcc0eebcd484000 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Sat, 17 Oct 2020 03:25:17 +0200 Subject: remove some TODOs handled as issues --- mumd/src/audio.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'mumd/src/audio.rs') diff --git a/mumd/src/audio.rs b/mumd/src/audio.rs index a63e0cc..828942b 100644 --- a/mumd/src/audio.rs +++ b/mumd/src/audio.rs @@ -20,7 +20,6 @@ struct ClientStream { opus_decoder: opus::Decoder, } -//TODO remove pub where possible pub struct Audio { pub output_config: StreamConfig, pub output_stream: Stream, @@ -28,13 +27,12 @@ pub struct Audio { pub input_config: StreamConfig, pub input_stream: Stream, pub input_buffer: Arc>>, - input_channel_receiver: Option>, //TODO unbounded? mbe ring buffer and drop the first packet + input_channel_receiver: Option>, input_volume_sender: watch::Sender, - client_streams: Arc>>, //TODO move to user state + client_streams: Arc>>, } -//TODO split into input/output impl Audio { pub fn new() -> Self { let host = cpal::default_host(); @@ -324,7 +322,6 @@ fn input_callback( opus_buf.truncate(result); let bytes = Bytes::copy_from_slice(&opus_buf); match input_sender.try_send(VoicePacketPayload::Opus(bytes, false)) { - //TODO handle full buffer / disconnect Ok(_) => {} Err(_e) => { //warn!("Error sending audio packet: {:?}", e); -- cgit v1.2.1