Skip to content

Commit

Permalink
Remove noisy print message
Browse files Browse the repository at this point in the history
  • Loading branch information
griffobeid committed Dec 19, 2023
1 parent 70b6dd9 commit 3c1a17f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions video-daemon/src/microphone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ fn start_microphone(device: String, quic_tx: Sender<Vec<u8>>, email: String, sto
};
info!("Begin streaming audio...");
stream.play().expect("failed to play stream");

loop {
if stop.load(std::sync::atomic::Ordering::Relaxed) {
break;
Expand All @@ -136,7 +136,6 @@ fn start_microphone(device: String, quic_tx: Sender<Vec<u8>>, email: String, sto

fn encode_and_send_i16(input: &[i16], encoder: &mut opus::Encoder, quic_tx: &Sender<Vec<u8>>, 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()?;
Expand Down Expand Up @@ -168,4 +167,4 @@ fn convert_to_media_packet(data: Vec<u8>, email: String, sequence: u64) -> Media
}))),
..Default::default()
}
}
}

0 comments on commit 3c1a17f

Please sign in to comment.