Ejemplo n.º 1
0
        /// <summary>
        /// Gets limits on audio quality for a given encoder.
        /// </summary>
        /// <param name="encoderId">
        /// The audio encoder ID.
        /// </param>
        /// <returns>
        /// Limits on the audio quality for the given encoder.
        /// </returns>
        public static RangeLimits GetAudioQualityLimits(int encoderId)
        {
            float low = 0, high = 0, granularity = 0;
            int   direction = 0;

            HBFunctions.hb_audio_quality_get_limits((uint)encoderId, ref low, ref high, ref granularity, ref direction);

            return(new RangeLimits(direction == 0, granularity, high, low));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Gets limits on audio quality for a given encoder.
        /// </summary>
        /// <param name="encoderId">The audio encoder ID.</param>
        /// <returns>Limits on the audio quality for the given encoder.</returns>
        internal static RangeLimits GetAudioQualityLimits(int encoderId)
        {
            float low = 0, high = 0, granularity = 0;
            int   direction = 0;

            HBFunctions.hb_audio_quality_get_limits((uint)encoderId, ref low, ref high, ref granularity, ref direction);

            return(new RangeLimits
            {
                Low = low,
                High = high,
                Granularity = granularity,
                Ascending = direction == 0
            });
        }
Ejemplo n.º 3
0
 public void hb_audio_quality_get_limits(uint codec, ref float low, ref float high, ref float granularity, ref int direction)
 {
     HBFunctions.hb_audio_quality_get_limits(codec, ref low, ref high, ref granularity, ref direction);
 }