summaryrefslogtreecommitdiffstats
path: root/win/C#/Controls/AudioPanel.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2009-12-18 20:42:24 +0000
committersr55 <[email protected]>2009-12-18 20:42:24 +0000
commit03269c48edcef15f404fd79d7f54b2f083295473 (patch)
treef3843091af635751849a77d4adbc0c138bd5a44a /win/C#/Controls/AudioPanel.cs
parent5e9dc67f7c17c8c61dafb65c11e0cfc854a48a04 (diff)
WinGui:
- Audio Panel fixes and Usability improvements. - Disabled DRC control which shouldn't have been active when AC3/DTS was selected - Greyed out text labels for Mixdown, Samplerate, bitrate and DRC to help make it clearer the controls are disabled when AC3/DTS is selected. - Changed the values which those controls are reset to when AC3/DTS are selected so they are not showing the first value in the dropdown. (e.g 32 for the bitrate. This was a little mis-leading) - Changed Mixdown from Automatic to "AC3 Passthru" to match the MacGui when AC3 is selected. Same for DTS git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3033 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Controls/AudioPanel.cs')
-rw-r--r--win/C#/Controls/AudioPanel.cs38
1 files changed, 36 insertions, 2 deletions
diff --git a/win/C#/Controls/AudioPanel.cs b/win/C#/Controls/AudioPanel.cs
index b394e3ca5..2c2028b97 100644
--- a/win/C#/Controls/AudioPanel.cs
+++ b/win/C#/Controls/AudioPanel.cs
@@ -48,16 +48,44 @@ namespace Handbrake.Controls
drp_audioMix.Enabled = false;
drp_audioBitrate.Enabled = false;
drp_audioSample.Enabled = false;
+ tb_drc.Enabled = false;
+
+ lbl_bitrate.Enabled = false;
+ lbl_drc.Enabled = false;
+ lbl_drcHeader.Enabled = false;
+ lbl_mixdown.Enabled = false;
+ lbl_sampleRate.Enabled = false;
- drp_audioMix.SelectedIndex = 0;
drp_audioBitrate.SelectedIndex = 0;
drp_audioSample.SelectedIndex = 0;
+ drp_audioMix.Items.Add("AC3 Passthru");
+ drp_audioMix.Items.Add("DTS Passthru");
+
+ if (drp_audioEncoder.Text.Contains("AC3"))
+ drp_audioMix.SelectedItem = "AC3 Passthru";
+ else
+ drp_audioMix.SelectedItem = "DTS Passthru";
+
+ drp_audioBitrate.Items.Add("Auto");
+ drp_audioBitrate.SelectedItem = "Auto";
+ tb_drc.Value = 0;
}
else
{
drp_audioMix.Enabled = true;
drp_audioBitrate.Enabled = true;
drp_audioSample.Enabled = true;
+ tb_drc.Enabled = true;
+
+ lbl_bitrate.Enabled = true;
+ lbl_drc.Enabled = true;
+ lbl_drcHeader.Enabled = true;
+ lbl_mixdown.Enabled = true;
+ lbl_sampleRate.Enabled = true;
+
+ drp_audioMix.Items.Remove("AC3 Passthru");
+ drp_audioMix.Items.Remove("DTS Passthru");
+ drp_audioBitrate.Items.Remove("Auto");
drp_audioMix.SelectedIndex = 0;
drp_audioBitrate.SelectedIndex = 9;
@@ -68,6 +96,13 @@ namespace Handbrake.Controls
if (lv_audioList.Items.Count != 0 && lv_audioList.SelectedIndices.Count != 0)
{
lv_audioList.Items[lv_audioList.SelectedIndices[0]].SubItems[2].Text = drp_audioEncoder.Text;
+ if (drp_audioEncoder.Text.Contains("AC3"))
+ {
+ lv_audioList.Items[lv_audioList.SelectedIndices[0]].SubItems[3].Text = "AC3 Passthru";
+ lv_audioList.Items[lv_audioList.SelectedIndices[0]].SubItems[4].Text = "Auto";
+ lv_audioList.Items[lv_audioList.SelectedIndices[0]].SubItems[5].Text = "Auto";
+ lv_audioList.Items[lv_audioList.SelectedIndices[0]].SubItems[6].Text = "0.0";
+ }
lv_audioList.Select();
}
}
@@ -398,6 +433,5 @@ namespace Handbrake.Controls
else
AudioTrackGroup.Text = "Selected Track: None (Click \"Add Track\" to add)";
}
-
}
} \ No newline at end of file