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

Method PropertiesJSON

src/audio_effects/Echo.cpp:161–173  ·  view source on GitHub ↗

Get all properties for a specific frame

Source from the content-addressed store, hash-verified

159
160// Get all properties for a specific frame
161std::string Echo::PropertiesJSON(int64_t requested_frame) const {
162
163 // Generate JSON properties list
164 Json::Value root = BasePropertiesJSON(requested_frame);
165
166 // Keyframes
167 root["echo_time"] = add_property_json("Time", echo_time.GetValue(requested_frame), "float", "", &echo_time, 0, 5, false, requested_frame);
168 root["feedback"] = add_property_json("Feedback", feedback.GetValue(requested_frame), "float", "", &feedback, 0, 1, false, requested_frame);
169 root["mix"] = add_property_json("Mix", mix.GetValue(requested_frame), "float", "", &mix, 0, 1, false, requested_frame);
170
171 // Return formatted string
172 return root.toStyledString();
173}

Callers

nothing calls this directly

Calls 1

GetValueMethod · 0.80

Tested by

no test coverage detected