1use std::net::{SocketAddr, UdpSocket};
2
3use crate::voice::microphone::VoiceChatMicrophone;
4
5pub mod decoder;
6pub mod microphone;
7
8pub fn init_microphone( addr: SocketAddr, socket: UdpSocket ) -> anyhow::Result<VoiceChatMicrophone>{
9 let mut handle = VoiceChatMicrophone::new(addr, socket);
10 handle.start_stream()?;
11
12 Ok(handle)
13}