MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / SetJsonValue

Method SetJsonValue

src/audio_effects/Expander.cpp:163–186  ·  view source on GitHub ↗

Load Json::Value into this object

Source from the content-addressed store, hash-verified

161
162// Load Json::Value into this object
163void Expander::SetJsonValue(const Json::Value root) {
164
165 // Set parent data
166 EffectBase::SetJsonValue(root);
167
168 // Set data from Json (if key is found)
169 if (!root["threshold"].isNull())
170 threshold.SetJsonValue(root["threshold"]);
171
172 if (!root["ratio"].isNull())
173 ratio.SetJsonValue(root["ratio"]);
174
175 if (!root["attack"].isNull())
176 attack.SetJsonValue(root["attack"]);
177
178 if (!root["release"].isNull())
179 release.SetJsonValue(root["release"]);
180
181 if (!root["makeup_gain"].isNull())
182 makeup_gain.SetJsonValue(root["makeup_gain"]);
183
184 if (!root["bypass"].isNull())
185 bypass.SetJsonValue(root["bypass"]);
186}
187
188// Get all properties for a specific frame
189std::string Expander::PropertiesJSON(int64_t requested_frame) const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected