summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrake.Interop/HandBrakeInterop/Converters.cs
diff options
context:
space:
mode:
Diffstat (limited to 'win/CS/HandBrake.Interop/HandBrakeInterop/Converters.cs')
-rw-r--r--win/CS/HandBrake.Interop/HandBrakeInterop/Converters.cs71
1 files changed, 0 insertions, 71 deletions
diff --git a/win/CS/HandBrake.Interop/HandBrakeInterop/Converters.cs b/win/CS/HandBrake.Interop/HandBrakeInterop/Converters.cs
index bc34ac380..00fc4e4e8 100644
--- a/win/CS/HandBrake.Interop/HandBrakeInterop/Converters.cs
+++ b/win/CS/HandBrake.Interop/HandBrakeInterop/Converters.cs
@@ -61,77 +61,6 @@ namespace HandBrake.Interop
}
/// <summary>
- /// Convert a Mixdown object to HandBrakes native mixdown constant.
- /// </summary>
- /// <param name="mixdown">
- /// The mixdown.
- /// </param>
- /// <returns>
- /// NativeContstant that represents the mixdown.
- /// </returns>
- /// <exception cref="ArgumentException">
- /// Thrown for an invalid mixodown.
- /// </exception>
- public static int MixdownToNative(Mixdown mixdown)
- {
- if (mixdown == Mixdown.Auto)
- {
- throw new ArgumentException("Cannot convert Auto to native.");
- }
-
- switch (mixdown)
- {
- case Mixdown.None:
- return NativeConstants.HB_AMIXDOWN_NONE;
- case Mixdown.DolbyProLogicII:
- return NativeConstants.HB_AMIXDOWN_DOLBYPLII;
- case Mixdown.DolbySurround:
- return NativeConstants.HB_AMIXDOWN_DOLBY;
- case Mixdown.Mono:
- return NativeConstants.HB_AMIXDOWN_MONO;
- case Mixdown.FivePoint1Channels:
- return NativeConstants.HB_AMIXDOWN_6CH;
- case Mixdown.Stereo:
- return NativeConstants.HB_AMIXDOWN_STEREO;
- }
-
- return 0;
- }
-
- /// <summary>
- /// Convert an native internal handbrake mixdown to a local mixdown enum.
- /// </summary>
- /// <param name="mixdown">
- /// The mixdown.
- /// </param>
- /// <returns>
- /// A mixdown object.
- /// </returns>
- /// <exception cref="ArgumentException">
- /// thrown when mixdown is invalid.
- /// </exception>
- public static Mixdown NativeToMixdown(int mixdown)
- {
- switch (mixdown)
- {
- case NativeConstants.HB_AMIXDOWN_NONE:
- return Mixdown.None;
- case NativeConstants.HB_AMIXDOWN_MONO:
- return Mixdown.Mono;
- case NativeConstants.HB_AMIXDOWN_STEREO:
- return Mixdown.Stereo;
- case NativeConstants.HB_AMIXDOWN_DOLBY:
- return Mixdown.DolbySurround;
- case NativeConstants.HB_AMIXDOWN_DOLBYPLII:
- return Mixdown.DolbyProLogicII;
- case NativeConstants.HB_AMIXDOWN_6CH:
- return Mixdown.FivePoint1Channels;
- }
-
- throw new ArgumentException("Unrecognized mixdown: " + mixdown, "mixdown");
- }
-
- /// <summary>
/// Gets the native code for the given encoder.
/// </summary>
/// <param name="encoder">The audio encoder to convert.</param>