Skip to content

Commit

Permalink
Add option to convert audio in mono channel #53
Browse files Browse the repository at this point in the history
  • Loading branch information
argorar committed Oct 7, 2023
1 parent 9d164ae commit 0e2ae37
Show file tree
Hide file tree
Showing 3 changed files with 196 additions and 39 deletions.
67 changes: 43 additions & 24 deletions MainForm.Designer.cs

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

10 changes: 8 additions & 2 deletions MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1443,7 +1443,7 @@ void buttonVariableDefault_Click(object sender, EventArgs e)
void boxAudio_CheckedChanged(object sender, EventArgs e)
{
numericAudioQuality.Enabled = boxAudioBitrate.Enabled = numericDelay.Enabled = ((CheckBox)sender).Checked ;
numericNormalization.Enabled = boxAudio.Checked;
numericNormalization.Enabled = boxMono.Enabled = boxAudio.Checked;

if (boxNGOV.Checked)
numericAudioQuality.Enabled = false;
Expand Down Expand Up @@ -2393,7 +2393,8 @@ string GenerateArguments()
if (boxAudio.Checked)
{
audio = "";
acodec = " -ac 2 -c:a " + acodec;
int channels = boxMono.Checked ? 1 : 2;
acodec = $" -ac {channels} -c:a {acodec}";
}
else
{
Expand Down Expand Up @@ -3021,5 +3022,10 @@ private void buttonDynamic_Click_1(object sender, EventArgs e)
}
}
}

private void boxMono_CheckedChanged(object sender, EventArgs e)
{
UpdateArguments(sender, e);
}
}
}
Loading

0 comments on commit 0e2ae37

Please sign in to comment.