| 250 | } |
| 251 | |
| 252 | bool 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 | |
| 270 | bool MacroConditionStats::CheckStreamMBSent() const |
| 271 | { |
nothing calls this directly
no test coverage detected