#include "modules/audio_processing/test/echo_canceller3_config_json.h"
#include <stddef.h>
#include <memory>
#include <string>
#include <vector>
#include "rtc_base/checks.h"
#include "rtc_base/logging.h"
#include "rtc_base/strings/json.h"
#include "rtc_base/strings/string_builder.h"
namespace webrtc {
namespace {
void ReadParam(const Json::Value& root, std::string param_name, bool* param) { … }
void ReadParam(const Json::Value& root, std::string param_name, size_t* param) { … }
void ReadParam(const Json::Value& root, std::string param_name, int* param) { … }
void ReadParam(const Json::Value& root, std::string param_name, float* param) { … }
void ReadParam(const Json::Value& root,
std::string param_name,
EchoCanceller3Config::Filter::RefinedConfiguration* param) { … }
void ReadParam(const Json::Value& root,
std::string param_name,
EchoCanceller3Config::Filter::CoarseConfiguration* param) { … }
void ReadParam(const Json::Value& root,
std::string param_name,
EchoCanceller3Config::Delay::AlignmentMixing* param) { … }
void ReadParam(
const Json::Value& root,
std::string param_name,
EchoCanceller3Config::Suppressor::SubbandNearendDetection::SubbandRegion*
param) { … }
void ReadParam(const Json::Value& root,
std::string param_name,
EchoCanceller3Config::Suppressor::MaskingThresholds* param) { … }
}
void Aec3ConfigFromJsonString(absl::string_view json_string,
EchoCanceller3Config* config,
bool* parsing_successful) { … }
std::string Aec3ConfigToJsonString(const EchoCanceller3Config& config) { … }
}