mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Added a null check in ResamplingAudioSource
This commit is contained in:
parent
8f89605e15
commit
ed289488e0
1 changed files with 2 additions and 1 deletions
|
|
@ -230,7 +230,8 @@ void ResamplingAudioSource::setFilterCoefficients (double c1, double c2, double
|
|||
|
||||
void ResamplingAudioSource::resetFilters()
|
||||
{
|
||||
filterStates.clear ((size_t) numChannels);
|
||||
if (filterStates != nullptr)
|
||||
filterStates.clear ((size_t) numChannels);
|
||||
}
|
||||
|
||||
void ResamplingAudioSource::applyFilter (float* samples, int num, FilterState& fs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue