From e1501e5ddca954028b8c9ed165546e4445aeff10 Mon Sep 17 00:00:00 2001 From: Dmytro Bogovych Date: Sat, 27 Jun 2020 10:59:50 +0300 Subject: [PATCH] - initial work to replace MT::SevanaMos with sevana::aqua & sevana::pvqa --- src/engine/agent/Agent_Impl.cpp | 2 +- src/engine/agent/Agent_Impl.h | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/engine/agent/Agent_Impl.cpp b/src/engine/agent/Agent_Impl.cpp index 39f6070b..a4306a3d 100644 --- a/src/engine/agent/Agent_Impl.cpp +++ b/src/engine/agent/Agent_Impl.cpp @@ -337,7 +337,7 @@ void AgentImpl::processStartSession(Json::Value& request, Json::Value& answer) if (temp_path.size()) config += " -fau " + temp_path; - MT::PSevanaAqua qc = std::make_shared(); + auto qc = std::make_shared(); qc->setTempPath(temp_path); qc->configureWith(MT::SevanaAqua::parseConfig(config)); diff --git a/src/engine/agent/Agent_Impl.h b/src/engine/agent/Agent_Impl.h index c4fbf8cf..a4749c5e 100644 --- a/src/engine/agent/Agent_Impl.h +++ b/src/engine/agent/Agent_Impl.h @@ -13,6 +13,8 @@ #include "Agent_AudioManager.h" #include #include +#include "aqua++.h" +#include "pvqa++.h" class AgentImpl: public UserAgent #if defined(USE_AQUA_LIBRARY) @@ -34,7 +36,7 @@ protected: #if defined(USE_AQUA_LIBRARY) // Keys are the same as used in mSessionMap - typedef std::map AquaMap; + typedef std::map AquaMap; AquaMap mAquaMap; ByteBuffer mAquaIncoming, mAquaOutgoing; #endif