/// </summary>\r
private bool enableQuickSync;\r
\r
+ /// <summary>\r
+ /// The add foreign audio scan track.\r
+ /// </summary>\r
+ private bool addForeignAudioScanTrack;\r
+\r
#endregion\r
\r
#region Constructors and Destructors\r
}\r
}\r
\r
+ /// <summary>\r
+ /// Gets or sets a value indicating whether add foreign audio scan track.\r
+ /// </summary>\r
+ public bool AddForeignAudioScanTrack\r
+ {\r
+ get\r
+ {\r
+ return this.addForeignAudioScanTrack;\r
+ }\r
+ set\r
+ {\r
+ if (value.Equals(this.addForeignAudioScanTrack))\r
+ {\r
+ return;\r
+ }\r
+ this.addForeignAudioScanTrack = value;\r
+ this.NotifyOfPropertyChange(() => this.AddForeignAudioScanTrack);\r
+ }\r
+ }\r
+\r
#endregion\r
\r
#region System and Logging\r
{\r
get\r
{\r
- return this.enableQuickSync;\r
+ return this.enableQuickSync && this.IsQuickSyncAvailable;\r
}\r
set\r
{\r
\r
this.AddClosedCaptions = this.userSettingService.GetUserSetting<bool>(UserSettingConstants.UseClosedCaption);\r
this.ShowAdvancedPassthruOpts = this.userSettingService.GetUserSetting<bool>(UserSettingConstants.ShowAdvancedAudioPassthruOpts);\r
-\r
+ this.AddForeignAudioScanTrack = this.userSettingService.GetUserSetting<bool>(UserSettingConstants.AddForeignAudioScanTrack);\r
\r
// #############################\r
// Video\r
this.userSettingService.SetUserSetting(UserSettingConstants.DubModeAudio, this.SelectedAddAudioMode);\r
this.userSettingService.SetUserSetting(UserSettingConstants.DubModeSubtitle, this.SelectedAddSubtitleMode);\r
this.userSettingService.SetUserSetting(UserSettingConstants.ShowAdvancedAudioPassthruOpts, this.ShowAdvancedPassthruOpts);\r
-\r
-\r
+ this.userSettingService.SetUserSetting(UserSettingConstants.AddForeignAudioScanTrack, this.AddForeignAudioScanTrack);\r
+ \r
/* Video */\r
this.userSettingService.SetUserSetting(UserSettingConstants.EnableQuickSync, this.EnableQuickSync);\r
this.userSettingService.SetUserSetting(ASUserSettingConstants.DisableQuickSyncDecoding, this.DisableQuickSyncDecoding);\r
{\r
this.Task.SubtitleTracks.Clear();\r
\r
+ // Add Foreign Audio Scan\r
+ if (this.UserSettingService.GetUserSetting<bool>(UserSettingConstants.AddForeignAudioScanTrack))\r
+ {\r
+ this.Add(ForeignAudioSearchTrack);\r
+ }\r
+\r
// New DUB Settings\r
int mode = this.UserSettingService.GetUserSetting<int>(UserSettingConstants.DubModeSubtitle);\r
switch (mode)\r
<Grid.RowDefinitions>\r
<RowDefinition Height="Auto" />\r
<RowDefinition Height="Auto" />\r
+ <RowDefinition Height="Auto" />\r
</Grid.RowDefinitions>\r
\r
<Grid.ColumnDefinitions>\r
ItemsSource="{Binding AddSubtitleModeOptions}" SelectedIndex="{Binding SelectedAddSubtitleMode}" Width="120" Margin="0,0,5,0" />\r
<CheckBox Content="Add Closed Captions when available" Grid.Column="3" Grid.Row="1" Margin="0,5,0,0" \r
HorizontalAlignment="Left" IsChecked="{Binding AddClosedCaptions}"/>\r
+ <CheckBox Content="Add 'Foreign Audio Scan'" Grid.Column="3" Grid.Row="2" Margin="0,5,0,0" \r
+ HorizontalAlignment="Left" IsChecked="{Binding AddForeignAudioScanTrack}"/>\r
</Grid>\r
\r
<TextBlock Text="Additional languages for possible selection" Grid.Column="0" Margin="10,20,0,0" FontSize="14"/>\r
<anyType xmlns:q1="http://www.w3.org/2001/XMLSchema" d4p1:type="q1:int" xmlns:d4p1="http://www.w3.org/2001/XMLSchema-instance">0</anyType>\r
</value>\r
</item>\r
+ <item>\r
+ <key>\r
+ <string>AddForeignAudioScanTrack</string>\r
+ </key>\r
+ <value>\r
+ <anyType xmlns:q1="http://www.w3.org/2001/XMLSchema" d4p1:type="q1:boolean" xmlns:d4p1="http://www.w3.org/2001/XMLSchema-instance">false</anyType>\r
+ </value>\r
+ </item>\r
</dictionary>
\ No newline at end of file