using System.Linq;\r
using System.Windows.Forms;\r
\r
+ using HandBrake.ApplicationServices.Functions;\r
using HandBrake.ApplicationServices.Model;\r
using HandBrake.ApplicationServices.Model.Encoding;\r
using HandBrake.ApplicationServices.Parsing;\r
newTrack.CreateCells(audioList);\r
newTrack.Cells[0].Value = GetNewID().ToString();\r
newTrack.Cells[1].Value = "Automatic";\r
- newTrack.Cells[2].Value = track.Encoder;\r
- newTrack.Cells[3].Value = track.MixDown;\r
- newTrack.Cells[4].Value = (track.Encoder == AudioEncoder.Ac3Passthrough || track.Encoder == AudioEncoder.DtsPassthrough) ? "Auto" : track.SampleRate.ToString();\r
+ newTrack.Cells[2].Value = EnumHelper.GetDescription(track.Encoder);\r
+ newTrack.Cells[3].Value = EnumHelper.GetDescription(track.MixDown);\r
+ newTrack.Cells[4].Value = (track.Encoder == AudioEncoder.Ac3Passthrough || track.Encoder == AudioEncoder.DtsPassthrough || track.SampleRate == 0.0) ? "Auto" : track.SampleRate.ToString();\r
newTrack.Cells[5].Value = (track.Encoder == AudioEncoder.Ac3Passthrough || track.Encoder == AudioEncoder.DtsPassthrough) ? "Auto" : track.Bitrate.ToString();\r
newTrack.Cells[6].Value = (track.Encoder == AudioEncoder.Ac3Passthrough || track.Encoder == AudioEncoder.DtsPassthrough) ? string.Empty : track.DRC.ToString();\r
AddTrackForPreset(newTrack);\r
[Description("AC3 (ffmpeg)")]\r
Ac3,\r
\r
- [Description("Passthrough (AC3/DTS)")]\r
+ [Description("Passthru")]\r
Passthrough,\r
\r
- [Description("Passthrough (AC3)")]\r
+ [Description("AC3 Passthru")]\r
Ac3Passthrough,\r
\r
- [Description("Passthrough (DTS)")]\r
+ [Description("DTS Passthru")]\r
DtsPassthrough,\r
\r
[Description("Vorbis (vorbis)")]\r
\r
if (trackSamplerates != null)\r
if (trackSamplerates.Length >= (x + 1)) // Audio SampleRate\r
- track.SampleRate = double.Parse(trackSamplerates[x].Trim());\r
+ track.SampleRate = double.Parse(trackSamplerates[x].Replace("Auto", "0").Trim());\r
\r
if (trackDRCvalues != null)\r
if (trackDRCvalues.Length >= (x + 1)) // Audio DRC Values\r