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

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

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

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

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