mirror of
https://codeberg.org/armin/wavetable.git
synced 2026-09-01 05:50:46 +02:00
Fix deadlock
This commit is contained in:
parent
e4f7246f45
commit
155c933711
1 changed files with 4 additions and 3 deletions
|
|
@ -942,15 +942,16 @@ bool WavetableAudioProcessor::isBusesLayoutSupported (const BusesLayout& layout)
|
|||
void WavetableAudioProcessor::processBlock (juce::AudioBuffer<float>& buffer, juce::MidiBuffer& midi)
|
||||
{
|
||||
juce::ScopedNoDenormals noDenormals;
|
||||
|
||||
if (buffer.getNumChannels() != 2)
|
||||
return;
|
||||
|
||||
if (! dspLock.tryEnter())
|
||||
{
|
||||
blockMissed = true;
|
||||
return;
|
||||
}
|
||||
|
||||
if (buffer.getNumChannels() != 2)
|
||||
return;
|
||||
|
||||
if (midiLearn)
|
||||
midiLearn->processBlock (midi, buffer.getNumSamples());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue