private void OnTimecodeUpdated(TimecodeData timecode) { foreach (var timecodeSetting in timecodeSettingUseCase.Load()) { if (timecodeSetting == null) { continue; } var state = timecodeSetting.Evaluate(timecode); if (state == PulseState.Pulse) { overlayUseCase.Trigger(Color.red); onTriggerPulsedSubject.OnNext(timecodeSetting.ConnectedCommandName); } } }
private void OnTimecodeUpdated(TimecodeData timecode) { var offsetTimecode = OffsetFilter(timecode); foreach (var timecodeSetting in timecodeSettingUseCase.Load()) { if (timecodeSetting == null) { continue; } var state = timecodeSetting.Evaluate(offsetTimecode); if (state == PulseState.Pulse) { Send(timecodeSetting.ConnectedCommandName); } } }
public IEnumerable <TimecodeSetting> Load() { return(timecodeSettingUseCase.Load()); }