diff options
author | sr55 <[email protected]> | 2011-04-15 21:04:18 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2011-04-15 21:04:18 +0000 |
commit | a264b3c24c8ef687cac5325753be29f1b0f1d9f9 (patch) | |
tree | 318e69fb9ad0af00d2a2ae36c7b03d7f2d14c9af /win/CS/Controls/AudioPanel.cs | |
parent | 70fee546acaf4db3efb690ac4aaa09e0f4cb65e8 (diff) |
WinGui:
- Added "Advanced" audio options floating popup window.
* This exposes a new Audio Gain Control (-20 to +20 dB)
- Added support for (--gain=x,y,z) to the preset Loader.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3929 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/Controls/AudioPanel.cs')
-rw-r--r-- | win/CS/Controls/AudioPanel.cs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/win/CS/Controls/AudioPanel.cs b/win/CS/Controls/AudioPanel.cs index d569a1f6a..ddd75d703 100644 --- a/win/CS/Controls/AudioPanel.cs +++ b/win/CS/Controls/AudioPanel.cs @@ -18,6 +18,8 @@ namespace Handbrake.Controls using HandBrake.ApplicationServices.Parsing;
using HandBrake.ApplicationServices.Utilities;
+ using Handbrake.ToolWindows;
+
using AudioTrack = HandBrake.ApplicationServices.Model.Encoding.AudioTrack;
/// <summary>
@@ -33,6 +35,7 @@ namespace Handbrake.Controls private static readonly CultureInfo Culture = new CultureInfo("en-US", false);
private const string AC3Passthru = "AC3 Passthru";
private const string DTSPassthru = "DTS Passthru";
+ AdvancedAudio advancedAudio = new AdvancedAudio();
private readonly BindingList<AudioTrack> audioTracks = new BindingList<AudioTrack>();
@@ -50,6 +53,8 @@ namespace Handbrake.Controls drp_audioMix.SelectedItem = "Dolby Pro Logic II";
drp_audioSample.SelectedIndex = 1;
+
+
}
/// <summary>
@@ -307,10 +312,15 @@ namespace Handbrake.Controls lbl_drc.Text = track.DRC.ToString();
lbl_audioTrack.Text = track.SourceTrack;
+
+ // Set the Advanced Control.
+ if (!advancedAudio.IsDisposed)
+ advancedAudio.Track = track;
}
}
else
lbl_audioTrack.Text = "(Click \"Add Track\" to add)";
+
}
#endregion
@@ -691,5 +701,17 @@ namespace Handbrake.Controls }
#endregion
+
+ private void btn_AdvancedAudio_Click(object sender, EventArgs e)
+ {
+ if (advancedAudio.IsDisposed)
+ {
+ advancedAudio = new AdvancedAudio { Track = this.audioList.SelectedRows[0].DataBoundItem as AudioTrack };
+ }
+
+ advancedAudio.Show();
+ }
+
+
}
}
\ No newline at end of file |