LogoSearch packages:      

Sourcecode: audacity version File versions

Resample Class Reference

List of all members.


Detailed Description

Combined interface to libresample and libsamplerate.

This class abstracts the interface to two different resampling libraries:

libresample, written by Dominic Mazzoni based on Resample-1.7 by Julius Smith. LGPL.

libsamplerate, written by Erik de Castro Lopo. GPL. The author of libsamplerate requests that you not distribute a binary version of Audacity that links to libsamplerate and also has plug-in support.

Definition at line 32 of file Resample.h.


Public Member Functions

bool Ok ()
 Returns true if the constructor succeeded.
int Process (double factor, float *inBuffer, int inBufferLen, bool lastFlag, int *inBufferUsed, float *outBuffer, int outBufferLen)
 Resample (bool useBestMethod, double minFactor, double maxFactor)

Static Public Member Functions

static int GetBestMethod ()
static int GetFastMethod ()
static wxString GetMethodName (int index)
static int GetNumMethods ()
static wxString GetResamplingLibraryName ()
static bool ResamplingEnabled ()
static void SetBestMethod (int index)
static void SetFastMethod (int index)

Private Attributes

void * mHandle
bool mInitial
int mMethod

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.5.1   Back to index