From 3036d09839b774caba47f4a325f83adac7ba1b02 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sun, 5 Feb 2012 15:13:36 +0000 Subject: WinGui: Fixes to the preset system and plist exporter. (Missing keys) git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4438 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- .../Utilities/PlistUtility.cs | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'win/CS/HandBrake.ApplicationServices/Utilities') diff --git a/win/CS/HandBrake.ApplicationServices/Utilities/PlistUtility.cs b/win/CS/HandBrake.ApplicationServices/Utilities/PlistUtility.cs index 1d2e4d3af..f8e5d489e 100644 --- a/win/CS/HandBrake.ApplicationServices/Utilities/PlistUtility.cs +++ b/win/CS/HandBrake.ApplicationServices/Utilities/PlistUtility.cs @@ -472,6 +472,13 @@ namespace HandBrake.ApplicationServices.Utilities /// private static void AddEncodeSettings(XmlTextWriter xmlWriter, EncodeTask parsed, Preset preset) { + AddEncodeElement(xmlWriter, "AudioAllowAACPass", "integer", parsed.AllowedPassthruOptions.AudioAllowAACPass ? "1" : "0"); + AddEncodeElement(xmlWriter, "AudioAllowAC3Pass", "integer", parsed.AllowedPassthruOptions.AudioAllowAC3Pass ? "1" : "0"); + AddEncodeElement(xmlWriter, "AudioAllowDTSHDPass", "integer", parsed.AllowedPassthruOptions.AudioAllowDTSHDPass ? "1" : "0"); + AddEncodeElement(xmlWriter, "AudioAllowDTSPass", "integer", parsed.AllowedPassthruOptions.AudioAllowDTSPass ? "1" : "0"); + AddEncodeElement(xmlWriter, "AudioAllowMP3Pass", "integer", parsed.AllowedPassthruOptions.AudioAllowMP3Pass ? "1" : "0"); + AddEncodeElement(xmlWriter, "AudioEncoderFallback", "string", EnumHelper.GetDisplay(parsed.AllowedPassthruOptions.AudioEncoderFallback)); + AddEncodeElement(xmlWriter, "ChapterMarkers", "integer", parsed.IncludeChapterMarkers ? "1" : "0"); AddEncodeElement(xmlWriter, "Default", "integer", "0"); AddEncodeElement(xmlWriter, "FileFormat", "string", Converters.GetFileFormat(parsed.OutputFormat) + " file"); @@ -698,13 +705,13 @@ namespace HandBrake.ApplicationServices.Utilities xmlWriter.WriteElementString("string", audioTrack.Bitrate.ToString()); xmlWriter.WriteElementString("key", "AudioEncoder"); - xmlWriter.WriteElementString("string", EnumHelper.GetDescription(audioTrack.Encoder)); + xmlWriter.WriteElementString("string", EnumHelper.GetDisplay(audioTrack.Encoder)); xmlWriter.WriteElementString("key", "AudioMixdown"); - xmlWriter.WriteElementString("string", EnumHelper.GetDescription(audioTrack.MixDown)); + xmlWriter.WriteElementString("string", EnumHelper.GetDisplay(audioTrack.MixDown)); xmlWriter.WriteElementString("key", "AudioSamplerate"); - xmlWriter.WriteElementString("string", audioTrack.SampleRate.ToString()); + xmlWriter.WriteElementString("string", audioTrack.SampleRate.ToString().Replace("0", "Auto")); xmlWriter.WriteElementString("key", "AudioTrack"); xmlWriter.WriteElementString("integer", audioTrack.Track.ToString()); @@ -715,6 +722,9 @@ namespace HandBrake.ApplicationServices.Utilities xmlWriter.WriteElementString("key", "AudioTrackDescription"); xmlWriter.WriteElementString("string", "Unknown"); + xmlWriter.WriteElementString("key", "AudioTrackGainSlider"); + xmlWriter.WriteElementString("real", audioTrack.Gain.ToString()); + xmlWriter.WriteEndElement(); } #endregion -- cgit v1.2.3