From 55a31060ecbb2f6982ad3ef5db30c91d518c2a94 Mon Sep 17 00:00:00 2001 From: Dmytro Bogovych Date: Thu, 29 Oct 2020 10:48:59 +0200 Subject: [PATCH] - send recorded audio (when AQuA used) to Java level --- src/engine/agent/Agent_Impl.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/engine/agent/Agent_Impl.cpp b/src/engine/agent/Agent_Impl.cpp index 2b75b680..6a762ac4 100644 --- a/src/engine/agent/Agent_Impl.cpp +++ b/src/engine/agent/Agent_Impl.cpp @@ -554,6 +554,9 @@ void AgentImpl::processGetMediaStats(Json::Value& request, Json::Value& answer) #if defined(USE_AQUA_LIBRARY) if (includeAqua) { + // Send recorded audio to upper level + answer["incoming_audio"] = mAquaIncoming.hexstring(); + ICELogInfo(<< "Running AQuA analyzer."); ByteBuffer referenceAudio; // Read AQuA reference audio from file if available @@ -600,9 +603,9 @@ void AgentImpl::processGetMediaStats(Json::Value& request, Json::Value& answer) } closeAqua(sessionIter->first); } - // Remove test audio - mAquaIncoming.clear(); mAquaOutgoing.clear(); } + // Remove test audio + mAquaIncoming.clear(); mAquaOutgoing.clear(); } #endif