コード例 #1
0
        public void InvalidRateChangeAboveMax()
        {
            var r = new SoxResampler(2.0, 1.0, 1, QualityRecipe.SOXR_HQ, QualityFlags.SOXR_VR);

            // This ratio is invalid because it is higher than the max ratio specified in the constructor
            r.SetRatio(3.0, 0);
        }
コード例 #2
0
        public void InvalidRateChangeNegative()
        {
            var r = new SoxResampler(2.0, 1.0, 1, QualityRecipe.SOXR_HQ, QualityFlags.SOXR_VR);

            // A negative ratio is impossible
            r.SetRatio(-1.0, 0);
        }
コード例 #3
0
        public void IllegalRateChange()
        {
            var r = new SoxResampler(1.0, 1.0, 1);

            // This call is illegal because a fixed-rate resampler was instantiated
            r.SetRatio(2.0, 0);
        }
コード例 #4
0
        public void RateChange()
        {
            var r = new SoxResampler(2.0, 1.0, 1, QualityRecipe.SOXR_HQ, QualityFlags.SOXR_VR);

            r.SetRatio(1.5, 0);
        }