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

Method CheckStreamBitrate

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

Source from the content-addressed store, hash-verified

250}
251
252bool MacroConditionStats::CheckStreamBitrate()
253{
254 OBSOutputAutoRelease output = obs_frontend_get_streaming_output();
255 _streamInfo.Update(output);
256
257 switch (_condition) {
258 case Condition::ABOVE:
259 return _streamInfo.kbps > _value;
260 case Condition::EQUALS:
261 return DoubleEquals(_streamInfo.kbps, _value, 1.0);
262 case Condition::BELOW:
263 return _streamInfo.kbps < _value;
264 default:
265 break;
266 }
267 return false;
268}
269
270bool MacroConditionStats::CheckStreamMBSent() const
271{

Callers

nothing calls this directly

Calls 2

DoubleEqualsFunction · 0.85
UpdateMethod · 0.45

Tested by

no test coverage detected