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

Method CheckRecordingBitrate

plugins/base/macro-condition-obs-stats.cpp:308–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306}
307
308bool MacroConditionStats::CheckRecordingBitrate()
309{
310 OBSOutputAutoRelease output = obs_frontend_get_recording_output();
311 _recordingInfo.Update(output);
312
313 switch (_condition) {
314 case Condition::ABOVE:
315 return _recordingInfo.kbps > _value;
316 case Condition::EQUALS:
317 return DoubleEquals(_recordingInfo.kbps, _value, 1.0);
318 case Condition::BELOW:
319 return _recordingInfo.kbps < _value;
320 default:
321 break;
322 }
323 return false;
324}
325
326bool MacroConditionStats::CheckRecordingMBSent() const
327{

Callers

nothing calls this directly

Calls 2

DoubleEqualsFunction · 0.85
UpdateMethod · 0.45

Tested by

no test coverage detected