document origin of ts_voice files
Signed-off-by: Aron Heinecke <aron.heinecke@t-online.de>
This commit is contained in:
parent
3c0acf3ffe
commit
818549f38c
3 changed files with 9 additions and 5 deletions
|
@ -175,10 +175,11 @@ async fn main() -> Result<()> {
|
|||
AudioData::S2CWhisper { from, .. } => *from,
|
||||
_ => 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) {
|
||||
debug!(logger, "Failed to play packet"; "error" => %e);
|
||||
}
|
||||
|
||||
// let mut t2a = t2a.lock().unwrap();
|
||||
// if let Err(e) = t2a.play_packet((con_id, from), packet) {
|
||||
// debug!(logger, "Failed to play packet"; "error" => %e);
|
||||
// }
|
||||
}
|
||||
Ok(())
|
||||
});
|
||||
|
|
|
@ -7,6 +7,7 @@ use tokio::task::LocalSet;
|
|||
|
||||
use ts_to_audio::TsToAudio;
|
||||
|
||||
// Example from tsclientlib, to be removed later on
|
||||
|
||||
pub mod ts_to_audio;
|
||||
|
||||
|
|
|
@ -11,6 +11,8 @@ use tokio_stream::wrappers::IntervalStream;
|
|||
use tsclientlib::ClientId;
|
||||
use tsproto_packets::packets::InAudioBuf;
|
||||
|
||||
// Example from tsclientlib, to be removed later on
|
||||
|
||||
use super::*;
|
||||
use crate::ConnectionId;
|
||||
|
||||
|
@ -95,7 +97,7 @@ impl TsToAudio {
|
|||
}
|
||||
future::ready(())
|
||||
}),
|
||||
);
|
||||
);
|
||||
}
|
||||
|
||||
pub(crate) fn play_packet(&mut self, id: Id, packet: InAudioBuf) -> Result<()> {
|
||||
|
|
Loading…
Reference in a new issue