// -------------------------------------------------------------------------------------------------------------------- // // This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License. // // // Defines the AudioEncoding type. // // -------------------------------------------------------------------------------------------------------------------- namespace HandBrake.Interop.Model.Encoding { using System; /// /// The Audio Encoding Model /// public class AudioEncoding { /// /// Initializes a new instance of the AudioEncoding class. /// public AudioEncoding() { // Initialize to -1 to differentiate a compression of 0 from uninitialized. this.Compression = -1; } /// /// Gets or sets the chosen track to apply the encoding to. /// /// 1-based index. 0 means apply to all tracks. public int InputNumber { get; set; } /// /// Gets or sets the encoder to use. /// public string Encoder { get; set; } /// /// Gets or sets the encode rate type (bitrate or quality). /// public AudioEncodeRateType EncodeRateType { get; set; } /// /// Gets or sets the bitrate (in kbps) of this track. /// public int Bitrate { get; set; } /// /// Gets or sets the target audio quality for this track. /// public float Quality { get; set; } /// /// Gets or sets the target audio compression for this track. /// public float Compression { get; set; } /// /// Gets or sets the mixdown. /// public string Mixdown { get; set; } /// /// Gets or sets the sample rate. Obsolete. Use SampleRateRaw instead. /// [Obsolete("This property is ignored and only exists for backwards compatibility. Use SampleRateRaw instead.")] public string SampleRate { get; set; } /// /// Gets or sets the sample rate in Hz. /// public int SampleRateRaw { get; set; } /// /// Gets or sets Gain. /// public int Gain { get; set; } /// /// Gets or sets Drc. /// public double Drc { get; set; } /// /// Gets or sets Name. /// public string Name { get; set; } } }