feat: main server as a relay, support for streamer client

This commit is contained in:
Ahmet Kaan GÜMÜŞ 2024-04-09 20:54:32 +03:00
parent e26b0b9fd1
commit a954dfce73
7 changed files with 188 additions and 126 deletions

View file

@ -60,7 +60,7 @@ pub async fn sound_stream(
mut producer: Producer<f32, Arc<SharedRb<f32, Vec<MaybeUninit<f32>>>>>,
) {
log::info!("Attention! We need cables");
while let Some(msg) = stream_consumer.next().await {
if is_listening() {
let data = String::from_utf8(msg.unwrap().into()).unwrap();