Remove Prefs.h from Resample.h

This commit is contained in:
Paul Licameli 2015-08-31 15:08:03 -04:00
parent 0741fc3915
commit 38b0bb2a8d
2 changed files with 10 additions and 8 deletions

View File

@ -23,6 +23,7 @@
*//*******************************************************************/
#include "Resample.h"
#include "Prefs.h"
#include <soxr.h>
@ -100,3 +101,11 @@ int Resample::Process(double factor,
*inBufferUsed = (int)idone;
return (int)odone;
}
void Resample::SetMethod(const bool useBestMethod)
{
if (useBestMethod)
mMethod = gPrefs->Read(GetBestMethodKey(), GetBestMethodDefault());
else
mMethod = gPrefs->Read(GetFastMethodKey(), GetFastMethodDefault());
}

View File

@ -17,7 +17,6 @@
#include <wx/intl.h>
#include <wx/string.h>
#include "Prefs.h"
#include "SampleFormat.h"
class Resample
@ -75,13 +74,7 @@ class Resample
int outBufferLen);
protected:
void SetMethod(const bool useBestMethod)
{
if (useBestMethod)
mMethod = gPrefs->Read(GetBestMethodKey(), GetBestMethodDefault());
else
mMethod = gPrefs->Read(GetFastMethodKey(), GetFastMethodDefault());
};
void SetMethod(const bool useBestMethod);
protected:
int mMethod; // resampler-specific enum for resampling method