From ecdfd4d26c93f7d4453b9817ce64f60670c93f55 Mon Sep 17 00:00:00 2001 From: Tom Early Date: Sun, 19 Dec 2021 13:02:53 -0700 Subject: [PATCH] one more fix for the flow --- Controller.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Controller.cpp b/Controller.cpp index df6ec7f..a9635a9 100644 --- a/Controller.cpp +++ b/Controller.cpp @@ -474,6 +474,19 @@ void CController::ReadDevice(std::shared_ptr device, EAmbeType type) c2_mux.lock(); codec2_queue.push(packet); c2_mux.unlock(); + // ... AND we need to encode the audio to the OTHER ambe codec + if (type == EAmbeType::dstar) + { + dmr_mux.lock(); + dmr_queue.push(packet); + dmr_mux.unlock(); + } + else + { + dstar_mux.lock(); + dstar_queue.push(packet); + dstar_mux.unlock(); + } } else /* the response is ambe data */ {