Increased Antialias filter length from 32 to 64

This commit is contained in:
oparviai 2014-01-06 19:19:38 +00:00
parent 026ebe3841
commit a61c28e36a

View File

@ -50,15 +50,17 @@
using namespace soundtouch; using namespace soundtouch;
// Define default interpolation algorithm here
TransposerBase::ALGORITHM TransposerBase::algorithm = TransposerBase::CUBIC;
// Constructor // Constructor
RateTransposer::RateTransposer() : FIFOProcessor(&outputBuffer) RateTransposer::RateTransposer() : FIFOProcessor(&outputBuffer)
{ {
bUseAAFilter = TRUE; bUseAAFilter = TRUE;
// Instantiates the anti-alias filter with default tap length // Instantiates the anti-alias filter
// of 32 pAAFilter = new AAFilter(64);
pAAFilter = new AAFilter(32);
pTransposer = TransposerBase::newInstance(); pTransposer = TransposerBase::newInstance();
} }
@ -211,10 +213,6 @@ int RateTransposer::isEmpty() const
// TransposerBase - Base class for interpolation // TransposerBase - Base class for interpolation
// //
// Initialize default algorithm
TransposerBase::ALGORITHM TransposerBase::algorithm = TransposerBase::CUBIC;
// static function to set interpolation algorithm // static function to set interpolation algorithm
void TransposerBase::setAlgorithm(TransposerBase::ALGORITHM a) void TransposerBase::setAlgorithm(TransposerBase::ALGORITHM a)
{ {