Skip to content

Commit

Permalink
Merge branch 'Fast_Video_Recording_With_OBS'
Browse files Browse the repository at this point in the history
  • Loading branch information
MerlinCooper committed Jun 21, 2020
2 parents 99e114e + 2827110 commit 23fb423
Show file tree
Hide file tree
Showing 33 changed files with 623 additions and 493 deletions.
83 changes: 57 additions & 26 deletions Main.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 12 additions & 2 deletions Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ void BeginProcessButton_Click(object sender, EventArgs e)

NativeMethods.SetThreadExecutionState(NativeMethods.ES_CONTINUOUS | NativeMethods.ES_SYSTEM_REQUIRED | NativeMethods.ES_DISPLAY_REQUIRED);

iRacingProcess = new IRacingReplay(shortTestOnly: TestOnlyCheckBox.Checked)
iRacingProcess = new IRacingReplay(shortTestOnly: TestOnlyCheckBox.Checked, bRecordUsingPauseResume:cb_FastVideoRecording.Checked, bCloseiRacingAfterRecording: cb_CloseiRacingAfterRecording.Checked)
.WithWorkingFolder(workingFolderTextBox.Text)
.AnalyseRace(() => { AnalysingRaceLabel.Visible = false; CapturingRaceLabel.Visible = true; })
.CaptureOpeningScenes()
Expand Down Expand Up @@ -520,7 +520,7 @@ void BeginProcessButton_Click(object sender, EventArgs e)
WindowState = FormWindowState.Normal;
this.BringToFront();

if (errorMessage == null && transcodeVideoButton.Enabled && EncodeVideoAfterCapture.Checked)
if (errorMessage == null && transcodeVideoButton.Enabled && cb_EncodeVideoAfterCapture.Checked)
{
tabControl1.SelectedIndex = 1;
Thread.Sleep(1000);
Expand Down Expand Up @@ -613,5 +613,15 @@ private void checkBox1_CheckedChanged(object sender, EventArgs e)
{

}

private void cb_FastVideoRecording_CheckedChanged(object sender, EventArgs e)
{
cb_EncodeVideoAfterCapture.Checked = !cb_FastVideoRecording.Checked;
}

private void EncodeVideoAfterCapture_CheckedChanged(object sender, EventArgs e)
{
cb_FastVideoRecording.Checked = !cb_EncodeVideoAfterCapture.Checked;
}
}
}
Loading

0 comments on commit 23fb423

Please sign in to comment.