private RateTransposer(FifoSampleBuffer <TSampleType> outputBuffer) : base(outputBuffer) { _useAliasFilter = true; _inputBuffer = new FifoSampleBuffer <TSampleType>(); _midBuffer = new FifoSampleBuffer <TSampleType>(); _outputBuffer = outputBuffer; _antiAliasFilter = new AntiAliasFilter <TSampleType>(64); _transposer = NewInstance(); }
private RateTransposer(FifoSampleBuffer outputBuffer) : base(outputBuffer) { _useAAFilter = #if !SOUNDTOUCH_PREVENT_CLICK_AT_RATE_CROSSOVER true; #else // Disable Anti-alias filter if desirable to avoid click at rate change zero value crossover false; #endif _inputBuffer = new FifoSampleBuffer(); _midBuffer = new FifoSampleBuffer(); _outputBuffer = outputBuffer; // Instantiates the anti-alias filter _pAAFilter = new AntiAliasFilter(64); _transposer = TransposerBase.CreateInstance(); }