diff options
author | sr55 <[email protected]> | 2016-05-12 19:48:41 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2016-05-12 19:48:41 +0100 |
commit | 16314ab0db954c46f64632e4111836061bd9748d (patch) | |
tree | 31e4e782eef340b81be7c5ad435ca79295f49aa3 /win/CS/HandBrakeWPF/Services/Encode | |
parent | c2ddfa317feb249bc4c39e986e9e60f9208bde0a (diff) |
WinGui: Add a track list on the Audio Defaults screen. This changes the behaviour to match the Mac and Linux GUIs. So you no longer have to have a source audio track before you can create presets.
Diffstat (limited to 'win/CS/HandBrakeWPF/Services/Encode')
-rw-r--r-- | win/CS/HandBrakeWPF/Services/Encode/Model/Models/AudioTrack.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/Services/Encode/Model/Models/AudioTrack.cs b/win/CS/HandBrakeWPF/Services/Encode/Model/Models/AudioTrack.cs index 53b162f87..8e21820c2 100644 --- a/win/CS/HandBrakeWPF/Services/Encode/Model/Models/AudioTrack.cs +++ b/win/CS/HandBrakeWPF/Services/Encode/Model/Models/AudioTrack.cs @@ -20,6 +20,7 @@ namespace HandBrakeWPF.Services.Encode.Model.Models using HandBrake.ApplicationServices.Interop.Model.Encoding; using HandBrake.ApplicationServices.Utilities; + using HandBrakeWPF.Model.Audio; using HandBrakeWPF.Services.Scan.Model; using HandBrakeWPF.Utilities; @@ -94,6 +95,25 @@ namespace HandBrakeWPF.Services.Encode.Model.Models this.SetupLimits(); } + /// <summary> + /// Create a track from a behaviour track. + /// </summary> + /// <param name="track">The Behavior track</param> + public AudioTrack(AudioBehaviourTrack track) + { + this.drc = track.DRC; + this.encoder = track.Encoder; + this.gain = track.Gain; + this.mixDown = track.MixDown != null ? track.MixDown.ShortName : "dpl2"; + this.sampleRate = track.SampleRate; + this.scannedTrack = new Audio(); + this.encoderRateType = track.EncoderRateType; + this.quality = track.Quality; + this.bitrate = track.Bitrate; + + this.SetupLimits(); + } + #region Track Properties /// <summary> |