From 3c1a17f3465aae128fc6e25440d052947780e5b6 Mon Sep 17 00:00:00 2001 From: Griffin Obeid Date: Tue, 19 Dec 2023 16:11:27 -0500 Subject: [PATCH] Remove noisy print message --- video-daemon/src/microphone.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/video-daemon/src/microphone.rs b/video-daemon/src/microphone.rs index dcd8c9eb..ea9aba58 100644 --- a/video-daemon/src/microphone.rs +++ b/video-daemon/src/microphone.rs @@ -123,7 +123,7 @@ fn start_microphone(device: String, quic_tx: Sender>, email: String, sto }; info!("Begin streaming audio..."); stream.play().expect("failed to play stream"); - + loop { if stop.load(std::sync::atomic::Ordering::Relaxed) { break; @@ -136,7 +136,6 @@ fn start_microphone(device: String, quic_tx: Sender>, email: String, sto fn encode_and_send_i16(input: &[i16], encoder: &mut opus::Encoder, quic_tx: &Sender>, email: String) -> anyhow::Result<()> { - println!("Encoding {} samples", input.len()); let output = encoder.encode_vec( input, 1024)?; let output = convert_to_media_packet(output, email, 0); let output = output.write_to_bytes()?; @@ -168,4 +167,4 @@ fn convert_to_media_packet(data: Vec, email: String, sequence: u64) -> Media }))), ..Default::default() } -} \ No newline at end of file +}