MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / dataFromJson

Method dataFromJson

plugins/Cardinal/src/HostTime.cpp:192–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190 }
191
192 void dataFromJson(json_t* rootJ) override {
193 if (json_t* bdJ = json_object_get(rootJ, "barDivision")) {
194 int value = json_integer_value(bdJ);
195 if (value == Bars1 || value == Bars4 || value == Bars8)
196 barDivision = static_cast<BarDivisions>(value);
197 }
198 }
199};
200
201// --------------------------------------------------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 2

json_object_getFunction · 0.85
json_integer_valueFunction · 0.85

Tested by

no test coverage detected