[DEV] update the change on 'enum' to 'enum class'
This commit is contained in:
parent
07a56e29ae
commit
434c8097d0
@ -52,15 +52,15 @@ audio::river::io::NodeFile::NodeFile(const std::string& _name, const ejson::Obje
|
|||||||
},
|
},
|
||||||
nb-chunk:1024 # number of chunk to open device (create the latency anf the frequency to call user)
|
nb-chunk:1024 # number of chunk to open device (create the latency anf the frequency to call user)
|
||||||
*/
|
*/
|
||||||
std::string typeInterface = audio::orchestra::type_undefined;
|
std::string typeInterface = audio::orchestra::type::undefined;
|
||||||
std::string streamName = "default";
|
std::string streamName = "default";
|
||||||
const ejson::Object tmpObject = m_config["map-on"].toObject();
|
const ejson::Object tmpObject = m_config["map-on"].toObject();
|
||||||
if (tmpObject.exist() == false) {
|
if (tmpObject.exist() == false) {
|
||||||
RIVER_WARNING("missing node : 'map-on' ==> auto map : 'auto:default'");
|
RIVER_WARNING("missing node : 'map-on' ==> auto map : 'auto:default'");
|
||||||
} else {
|
} else {
|
||||||
typeInterface = tmpObject.getStringValue("interface", audio::orchestra::type_undefined);
|
typeInterface = tmpObject.getStringValue("interface", audio::orchestra::type::undefined);
|
||||||
if (typeInterface == "auto") {
|
if (typeInterface == "auto") {
|
||||||
typeInterface = audio::orchestra::type_undefined;
|
typeInterface = audio::orchestra::type::undefined;
|
||||||
}
|
}
|
||||||
streamName = tmpObject.getStringValue("name", "default");
|
streamName = tmpObject.getStringValue("name", "default");
|
||||||
}
|
}
|
||||||
|
@ -52,15 +52,15 @@ audio::river::io::NodeOrchestra::NodeOrchestra(const std::string& _name, const e
|
|||||||
},
|
},
|
||||||
nb-chunk:1024 # number of chunk to open device (create the latency anf the frequency to call user)
|
nb-chunk:1024 # number of chunk to open device (create the latency anf the frequency to call user)
|
||||||
*/
|
*/
|
||||||
std::string typeInterface = audio::orchestra::type_undefined;
|
std::string typeInterface = audio::orchestra::typeUndefined;
|
||||||
std::string streamName = "default";
|
std::string streamName = "default";
|
||||||
const ejson::Object tmpObject = m_config["map-on"].toObject();
|
const ejson::Object tmpObject = m_config["map-on"].toObject();
|
||||||
if (tmpObject.exist() == false) {
|
if (tmpObject.exist() == false) {
|
||||||
RIVER_WARNING("missing node : 'map-on' ==> auto map : 'auto:default'");
|
RIVER_WARNING("missing node : 'map-on' ==> auto map : 'auto:default'");
|
||||||
} else {
|
} else {
|
||||||
typeInterface = tmpObject["interface"].toString().get(audio::orchestra::type_undefined);
|
typeInterface = tmpObject["interface"].toString().get(audio::orchestra::typeUndefined);
|
||||||
if (typeInterface == "auto") {
|
if (typeInterface == "auto") {
|
||||||
typeInterface = audio::orchestra::type_undefined;
|
typeInterface = audio::orchestra::typeUndefined;
|
||||||
}
|
}
|
||||||
streamName = tmpObject["name"].toString().get("default");
|
streamName = tmpObject["name"].toString().get("default");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user