summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.ApplicationServices
diff options
context:
space:
mode:
authorsr55 <[email protected]>2012-05-01 00:13:20 +0000
committersr55 <[email protected]>2012-05-01 00:13:20 +0000
commit4b99eac923d164a5a7e726370dbdb04324fea3da (patch)
treef40bce36d72e4877a8a924c79d41c94c3b835c6e /win/CS/HandBrake.ApplicationServices
parent247470bf6e6b0582cbedbc05bca11a67b973d7c1 (diff)
WinGui: (WPF) Improvements to the new audio panel.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4614 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices')
-rw-r--r--win/CS/HandBrake.ApplicationServices/Model/Encoding/AudioTrack.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Model/Encoding/AudioTrack.cs b/win/CS/HandBrake.ApplicationServices/Model/Encoding/AudioTrack.cs
index d7e3941bb..3fcf7cb5a 100644
--- a/win/CS/HandBrake.ApplicationServices/Model/Encoding/AudioTrack.cs
+++ b/win/CS/HandBrake.ApplicationServices/Model/Encoding/AudioTrack.cs
@@ -197,6 +197,7 @@ namespace HandBrake.ApplicationServices.Model.Encoding
{
this.encoder = value;
this.OnPropertyChanged("Encoder");
+ this.OnPropertyChanged("IsPassthru");
}
}
@@ -341,6 +342,22 @@ namespace HandBrake.ApplicationServices.Model.Encoding
}
}
+ /// <summary>
+ /// Gets a value indicating whether IsPassthru.
+ /// </summary>
+ public bool IsPassthru
+ {
+ get
+ {
+ if (this.Encoder == AudioEncoder.Ac3Passthrough || this.Encoder == AudioEncoder.DtsPassthrough
+ || this.Encoder == AudioEncoder.DtsHDPassthrough || this.Encoder == AudioEncoder.AacPassthru
+ || this.Encoder == AudioEncoder.Mp3Passthru || this.Encoder == AudioEncoder.Passthrough)
+ {
+ return true;
+ }
+ return false;
+ }
+ }
#endregion
}
} \ No newline at end of file