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

Method SetJsonValue

src/audio_effects/Echo.cpp:146–158  ·  view source on GitHub ↗

Load Json::Value into this object

Source from the content-addressed store, hash-verified

144
145// Load Json::Value into this object
146void Echo::SetJsonValue(const Json::Value root) {
147
148 // Set parent data
149 EffectBase::SetJsonValue(root);
150
151 // Set data from Json (if key is found)
152 if (!root["echo_time"].isNull())
153 echo_time.SetJsonValue(root["echo_time"]);
154 if (!root["feedback"].isNull())
155 feedback.SetJsonValue(root["feedback"]);
156 if (!root["mix"].isNull())
157 mix.SetJsonValue(root["mix"]);
158}
159
160// Get all properties for a specific frame
161std::string Echo::PropertiesJSON(int64_t requested_frame) const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected