mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-26 15:23:48 +01:00
Remove Prefs.h from Resample.h
This commit is contained in:
@@ -23,6 +23,7 @@
|
|||||||
*//*******************************************************************/
|
*//*******************************************************************/
|
||||||
|
|
||||||
#include "Resample.h"
|
#include "Resample.h"
|
||||||
|
#include "Prefs.h"
|
||||||
|
|
||||||
#include <soxr.h>
|
#include <soxr.h>
|
||||||
|
|
||||||
@@ -100,3 +101,11 @@ int Resample::Process(double factor,
|
|||||||
*inBufferUsed = (int)idone;
|
*inBufferUsed = (int)idone;
|
||||||
return (int)odone;
|
return (int)odone;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Resample::SetMethod(const bool useBestMethod)
|
||||||
|
{
|
||||||
|
if (useBestMethod)
|
||||||
|
mMethod = gPrefs->Read(GetBestMethodKey(), GetBestMethodDefault());
|
||||||
|
else
|
||||||
|
mMethod = gPrefs->Read(GetFastMethodKey(), GetFastMethodDefault());
|
||||||
|
}
|
||||||
|
|||||||
@@ -17,7 +17,6 @@
|
|||||||
#include <wx/intl.h>
|
#include <wx/intl.h>
|
||||||
#include <wx/string.h>
|
#include <wx/string.h>
|
||||||
|
|
||||||
#include "Prefs.h"
|
|
||||||
#include "SampleFormat.h"
|
#include "SampleFormat.h"
|
||||||
|
|
||||||
class Resample
|
class Resample
|
||||||
@@ -75,13 +74,7 @@ class Resample
|
|||||||
int outBufferLen);
|
int outBufferLen);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void SetMethod(const bool useBestMethod)
|
void SetMethod(const bool useBestMethod);
|
||||||
{
|
|
||||||
if (useBestMethod)
|
|
||||||
mMethod = gPrefs->Read(GetBestMethodKey(), GetBestMethodDefault());
|
|
||||||
else
|
|
||||||
mMethod = gPrefs->Read(GetFastMethodKey(), GetFastMethodDefault());
|
|
||||||
};
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
int mMethod; // resampler-specific enum for resampling method
|
int mMethod; // resampler-specific enum for resampling method
|
||||||
|
|||||||
Reference in New Issue
Block a user