From 213a543dd0d07b2f8d51a9c7e2055fd99291c960 Mon Sep 17 00:00:00 2001 From: Liam Barry Date: Mon, 9 May 2022 17:06:19 +0100 Subject: MLECO-3186: Each use case should same namespace convention as KWS and ASR Certain UCs required additional work due to case context variables which also became part of a namespace in generated files. Solution was to declare these extra variables as part of the UC namespace in the respective model.hpp files. Additional changes to standardise use of namespaces may be required - proposing new task. Minor typo and rewording of customizing.md in relevant sections included. Signed-off-by: Liam Barry Change-Id: Ie78f82a30be252cb841136ea5115f21fc8d762cb --- source/application/api/use_case/ad/include/AdModel.hpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'source/application/api/use_case/ad') diff --git a/source/application/api/use_case/ad/include/AdModel.hpp b/source/application/api/use_case/ad/include/AdModel.hpp index 0436a89..d9f8a08 100644 --- a/source/application/api/use_case/ad/include/AdModel.hpp +++ b/source/application/api/use_case/ad/include/AdModel.hpp @@ -19,13 +19,14 @@ #include "Model.hpp" -extern const int g_FrameLength; -extern const int g_FrameStride; -extern const float g_ScoreThreshold; -extern const float g_TrainingMean; - namespace arm { namespace app { + namespace ad { + extern const int g_FrameLength; + extern const int g_FrameStride; + extern const float g_ScoreThreshold; + extern const float g_TrainingMean; + } /* namespace ad */ class AdModel : public Model { -- cgit v1.2.1