[DEV] update to ne new ejson API (remove helper)

This commit is contained in:
2016-04-28 23:46:12 +02:00
parent aa5df52e14
commit 07a56e29ae
8 changed files with 32 additions and 32 deletions

View File

@@ -28,11 +28,11 @@ std::shared_ptr<audio::river::Interface> audio::river::io::NodeAEC::createInput(
RIVER_ERROR("can not open a non existance virtual interface: '" << _objectName << "' not present in : " << m_config.getKeys());
return std::shared_ptr<audio::river::Interface>();
}
std::string streamName = tmppp.getStringValue("map-on", "error");
std::string streamName = tmppp["map-on"].toString().get("error");
m_nbChunk = m_config.getNumberValue("nb-chunk", 1024);
m_nbChunk = m_config["nb-chunk"].toNumber().get(1024);
// check if it is an Output:
std::string type = tmppp.getStringValue("io", "error");
std::string type = tmppp["io"].toString().get("error");
if ( type != "input"
&& type != "feedback") {
RIVER_ERROR("can not open in output a virtual interface: '" << streamName << "' configured has : " << type);