From d428990eccd41c5ea9e67115a093ea0c09bc3e2a Mon Sep 17 00:00:00 2001 From: sr55 Date: Sat, 17 Sep 2011 19:15:51 +0000 Subject: Interop: Added support for various audio encoding options that were missing from various functions. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4228 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- .../HandBrakeInterop/Utilities.cs | 26 +++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) (limited to 'win/CS/HandBrake.Interop/HandBrakeInterop/Utilities.cs') diff --git a/win/CS/HandBrake.Interop/HandBrakeInterop/Utilities.cs b/win/CS/HandBrake.Interop/HandBrakeInterop/Utilities.cs index fa5142e19..084005d68 100644 --- a/win/CS/HandBrake.Interop/HandBrakeInterop/Utilities.cs +++ b/win/CS/HandBrake.Interop/HandBrakeInterop/Utilities.cs @@ -7,13 +7,24 @@ // // -------------------------------------------------------------------------------------------------------------------- -using HandBrake.Interop.Model.Encoding; - namespace HandBrake.Interop { - public static class Utilities + using HandBrake.Interop.Model.Encoding; + + public static class Utilities { - public static int GreatestCommonFactor(int a, int b) + /// + /// Get the Greatest Common Factor + /// + /// + /// The a. + /// + /// + /// The b. + /// + /// + /// + public static int GreatestCommonFactor(int a, int b) { if (a == 0) { @@ -42,7 +53,12 @@ namespace HandBrake.Interop /// True if the encoder is passthrough. public static bool IsPassthrough(AudioEncoder encoder) { - return encoder == AudioEncoder.Ac3Passthrough || encoder == AudioEncoder.Passthrough; + return encoder == AudioEncoder.Ac3Passthrough || + encoder == AudioEncoder.DtsHDPassthrough || + encoder == AudioEncoder.DtsPassthrough || + encoder == AudioEncoder.Mp3Passthru || + encoder == AudioEncoder.AacPassthru || + encoder == AudioEncoder.Passthrough; } } } -- cgit v1.2.3