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