| 306 | } |
| 307 | |
| 308 | bool 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 | |
| 326 | bool MacroConditionStats::CheckRecordingMBSent() const |
| 327 | { |
nothing calls this directly
no test coverage detected