MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / buildWaitData

Function buildWaitData

lib/utils/first-run-wizard-sequence.cpp:108–122  ·  view source on GitHub ↗

Builds the obs_data blob for a wait action, matching MacroActionWait::Save(). { "segmentSettings": { "enabled": true, "version": 2 }, "id": "wait", "duration": , "waitType": 0, "version": 1 }

Source from the content-addressed store, hash-verified

106// "version": 1
107// }
108static OBSDataAutoRelease buildWaitData(const Duration &duration)
109{
110 OBSDataAutoRelease seg = obs_data_create();
111 obs_data_set_bool(seg, "enabled", true);
112 obs_data_set_int(seg, "version", 2);
113
114 OBSDataAutoRelease data = obs_data_create();
115 obs_data_set_obj(data, "segmentSettings", seg);
116 obs_data_set_string(data, "id", "wait");
117 duration.Save(data, "duration");
118 obs_data_set_int(data, "waitType", 0);
119 obs_data_set_int(data, "version", 1);
120
121 return data;
122}
123
124// ===========================================================================
125// SequenceTriggerPage

Callers 1

validatePageMethod · 0.85

Calls 1

SaveMethod · 0.45

Tested by

no test coverage detected