From 04ba6b46af33dd0bfb0739409136f419cffaeba2 Mon Sep 17 00:00:00 2001 From: Tom Early Date: Mon, 20 Dec 2021 11:42:06 -0700 Subject: [PATCH] move AppendWave --- Controller.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Controller.cpp b/Controller.cpp index c988c75..5776946 100644 --- a/Controller.cpp +++ b/Controller.cpp @@ -467,6 +467,10 @@ void CController::ReadDevice(std::shared_ptr device, EAmbeType type) //move the audio to the CTranscoderPacket for (unsigned int i=0; i<160; i++) packet->GetAudio()[i] = ntohs(devpacket.payload.audio.samples[i]); +#ifdef DEBUG + if (EAmbeType::dstar == type) + AppendWave(packet); +#endif // we need to encode the m17 // encode the audio to c2_3200 (all ambe input vocodes to ECodecType::c2_3200) c2_mux.lock(); @@ -516,7 +520,7 @@ void CController::SendToReflector(std::shared_ptr packet) socket.Send(packet->GetTCPacket()); // the socket will automatically close after sending #ifdef DEBUG - AppendWave(packet); + //AppendWave(packet); #endif }