1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-25 02:04:23 +00:00

Added method IIRFilterAudioSource::makeInactive()

This commit is contained in:
jules 2013-06-19 11:11:59 +01:00
parent 2a39f805ab
commit ee3f77bc63
2 changed files with 9 additions and 0 deletions

View file

@ -41,6 +41,12 @@ void IIRFilterAudioSource::setCoefficients (const IIRCoefficients& newCoefficien
iirFilters.getUnchecked(i)->setCoefficients (newCoefficients);
}
void IIRFilterAudioSource::makeInactive()
{
for (int i = iirFilters.size(); --i >= 0;)
iirFilters.getUnchecked(i)->makeInactive();
}
//==============================================================================
void IIRFilterAudioSource::prepareToPlay (int samplesPerBlockExpected, double sampleRate)
{

View file

@ -53,6 +53,9 @@ public:
/** Changes the filter to use the same parameters as the one being passed in. */
void setCoefficients (const IIRCoefficients& newCoefficients);
/** Calls IIRFilter::makeInactive() on all the filters being used internally. */
void makeInactive();
//==============================================================================
void prepareToPlay (int samplesPerBlockExpected, double sampleRate);
void releaseResources();