50 bool deleteInputWhenDeleted,
64 void setResamplingRatio (
double samplesInPerOutputSample);
76 void prepareToPlay (
int samplesPerBlockExpected,
double sampleRate)
override;
77 void releaseResources()
override;
83 double ratio, lastRatio;
85 int bufferPos, sampsInBuffer;
86 double subSampleOffset;
87 double coefficients[6];
89 const int numChannels;
93 void setFilterCoefficients (
double c1,
double c2,
double c3,
double c4,
double c5,
double c6);
94 void createLowPass (
double proportionalRate);
98 double x1, x2, y1, y2;
104 void applyFilter (
float* samples,
int num, FilterState& fs);
#define JUCE_API
This macro is added to all JUCE public class declarations.
Very simple container class to hold a pointer to some data on the heap.
double getResamplingRatio() const noexcept
Returns the current resampling ratio.
A type of AudioSource that takes an input source and changes its sample rate.
Base class for objects that can produce a continuous stream of audio.
A simple spin-lock class that can be used as a simple, low-overhead mutex for uncontended situations...
Holds a pointer to an object which can optionally be deleted when this pointer goes out of scope...
Used by AudioSource::getNextAudioBlock().