1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-26 07:13:49 +01:00

Make the base class set mMethod, so descendants don't need to duplicate that code.

This commit is contained in:
v.audacity
2012-11-04 19:19:15 +00:00
parent 29768c2489
commit c889930a0c
2 changed files with 11 additions and 22 deletions

View File

@@ -31,9 +31,13 @@ class Resample
/// specify the range of factors that will be used, if you plan
/// to vary the factor over time. Otherwise set minFactor and
/// maxFactor to the same value for optimized performance.
Resample()
Resample(const bool useBestMethod)
{
mMethod = 0;
if (useBestMethod)
mMethod = GetBestMethod();
else
mMethod = GetFastMethod();
mHandle = NULL;
mInitial = false;
};