1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

DSP: Allow Convolution instances to share a single background thread

This commit is contained in:
reuk 2020-06-08 17:04:27 +01:00
parent 1502a3a8f2
commit ae35ebd5bc
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11
3 changed files with 212 additions and 97 deletions

View file

@ -1129,8 +1129,9 @@ private:
return latency;
}
dsp::Convolution cabinet { dsp::Convolution::NonUniform { 512 } };
dsp::Convolution reverb { dsp::Convolution::NonUniform { 512 } };
dsp::ConvolutionMessageQueue queue;
dsp::Convolution cabinet { dsp::Convolution::NonUniform { 512 }, queue };
dsp::Convolution reverb { dsp::Convolution::NonUniform { 512 }, queue };
dsp::DryWetMixer<float> mixer;
bool cabEnabled = false, reverbEnabled = false;