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:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user