diff --git a/src/Resample.cpp b/src/Resample.cpp index 4f78f4e0e..f10b2f8c9 100644 --- a/src/Resample.cpp +++ b/src/Resample.cpp @@ -23,6 +23,7 @@ *//*******************************************************************/ #include "Resample.h" +#include "Prefs.h" #include @@ -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()); +} diff --git a/src/Resample.h b/src/Resample.h index 255694f09..a098d408e 100644 --- a/src/Resample.h +++ b/src/Resample.h @@ -17,7 +17,6 @@ #include #include -#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