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);
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)
Holds a resizable array of primitive or copy-by-value objects.
Base class for objects that can produce a continuous stream of audio.
A type of AudioSource that takes an input source and changes its sample rate.
double getResamplingRatio() const noexcept
Returns the current resampling ratio.
A simple spin-lock class that can be used as a simple, low-overhead mutex for uncontended situations.
#define JUCE_API
This macro is added to all JUCE public class declarations.
Used by AudioSource::getNextAudioBlock().