document origin of ts_voice files

Signed-off-by: Aron Heinecke <aron.heinecke@t-online.de>
This commit is contained in:
Aron Heinecke 2021-05-12 00:44:57 +02:00
parent 3c0acf3ffe
commit 818549f38c
3 changed files with 9 additions and 5 deletions

View file

@ -175,10 +175,11 @@ async fn main() -> Result<()> {
AudioData::S2CWhisper { from, .. } => *from, AudioData::S2CWhisper { from, .. } => *from,
_ => panic!("Can only handle S2C packets but got a C2S packet"), _ => panic!("Can only handle S2C packets but got a C2S packet"),
}); });
let mut t2a = t2a.lock().unwrap();
if let Err(e) = t2a.play_packet((con_id, from), packet) { // let mut t2a = t2a.lock().unwrap();
debug!(logger, "Failed to play packet"; "error" => %e); // if let Err(e) = t2a.play_packet((con_id, from), packet) {
} // debug!(logger, "Failed to play packet"; "error" => %e);
// }
} }
Ok(()) Ok(())
}); });

View file

@ -7,6 +7,7 @@ use tokio::task::LocalSet;
use ts_to_audio::TsToAudio; use ts_to_audio::TsToAudio;
// Example from tsclientlib, to be removed later on
pub mod ts_to_audio; pub mod ts_to_audio;

View file

@ -11,6 +11,8 @@ use tokio_stream::wrappers::IntervalStream;
use tsclientlib::ClientId; use tsclientlib::ClientId;
use tsproto_packets::packets::InAudioBuf; use tsproto_packets::packets::InAudioBuf;
// Example from tsclientlib, to be removed later on
use super::*; use super::*;
use crate::ConnectionId; use crate::ConnectionId;