Skip to content

Commit

Permalink
AudioProcessing Turn On flag (surge-synthesizer#5388)
Browse files Browse the repository at this point in the history
The AUdioProcessing Active flag would be set true if
we had input and no output, but we wouldn't then process

Closes surge-synthesizer#5387 and the associated blinking
  • Loading branch information
baconpaul authored Nov 14, 2021
1 parent 08d6eae commit f84d96f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/surge-xt/SurgeSynthProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ bool SurgeSynthProcessor::isBusesLayoutSupported(const BusesLayout &layouts) con
void SurgeSynthProcessor::processBlock(juce::AudioBuffer<float> &buffer,
juce::MidiBuffer &midiMessages)
{
surge->audio_processing_active = true;
auto fpuguard = Surge::CPUFeatures::FPUStateGuard();

auto playhead = getPlayHead();
Expand Down Expand Up @@ -232,6 +231,7 @@ void SurgeSynthProcessor::processBlock(juce::AudioBuffer<float> &buffer,
// We have to have a stereo output
return;
}
surge->audio_processing_active = true;
auto mainOutput = getBusBuffer(buffer, false, 0);

auto mainInput = getBusBuffer(buffer, true, 0);
Expand Down

0 comments on commit f84d96f

Please sign in to comment.