mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-20 01:14:20 +00:00
DSP: Made trimming of the convolution impulse response optional
This commit is contained in:
parent
0a7e9ff119
commit
7a34790388
6 changed files with 94 additions and 58 deletions
|
|
@ -240,9 +240,9 @@ void DspModulePluginDemoAudioProcessor::updateParameters()
|
|||
auto maxSize = static_cast<size_t> (roundDoubleToInt (8192 * getSampleRate() / 44100));
|
||||
|
||||
if (type == 0)
|
||||
convolution.loadImpulseResponse (BinaryData::Impulse1_wav, BinaryData::Impulse1_wavSize, false, maxSize);
|
||||
convolution.loadImpulseResponse (BinaryData::Impulse1_wav, BinaryData::Impulse1_wavSize, false, true, maxSize);
|
||||
else
|
||||
convolution.loadImpulseResponse (BinaryData::Impulse2_wav, BinaryData::Impulse2_wavSize, false, maxSize);
|
||||
convolution.loadImpulseResponse (BinaryData::Impulse2_wav, BinaryData::Impulse2_wavSize, false, true, maxSize);
|
||||
}
|
||||
|
||||
cabinetIsBypassed = ! cabinetSimParam->get();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue