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

Fix to build on Linux, and error in destructor.

This commit is contained in:
v.audacity
2012-11-03 22:51:50 +00:00
parent 5460b5c668
commit 88d2c85c15
2 changed files with 193 additions and 194 deletions

View File

@@ -14,6 +14,7 @@
#include "Audacity.h"
#include <wx/intl.h>
#include <wx/string.h>
#include "Prefs.h"
@@ -140,4 +141,30 @@ class ConstRateResample : public Resample
#endif
};
class VarRateResample : public Resample
{
public:
VarRateResample(const bool useBestMethod, const double dMinFactor, const double dMaxFactor);
virtual ~VarRateResample();
// Override base class methods only if we actually have a var-rate library.
#if USE_LIBRESAMPLE || USE_LIBSAMPLERATE
static int GetNumMethods();
static wxString GetMethodName(int index);
static const wxString GetFastMethodKey();
static const wxString GetBestMethodKey();
static int GetFastMethodDefault();
static int GetBestMethodDefault();
virtual int Process(double factor,
float *inBuffer,
int inBufferLen,
bool lastFlag,
int *inBufferUsed,
float *outBuffer,
int outBufferLen);
#endif
};
#endif // __AUDACITY_RESAMPLE_H__