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;
101 HeapBlock<FilterState> filterStates;
104 void applyFilter (
float* samples,
int num, FilterState& fs);
106 JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ResamplingAudioSource)