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:
parent
2a39f805ab
commit
ee3f77bc63
2 changed files with 9 additions and 0 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue