Skip to content

Commit

Permalink
Make processBypass call process (surge-synthesizer#5829)
Browse files Browse the repository at this point in the history
This is a temporary fix to address surge-synthesizer#5828 and maybe surge-synthesizer#5805
  • Loading branch information
baconpaul authored Jan 26, 2022
1 parent d86b13b commit a4c1212
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/surge-xt/SurgeSynthProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,15 @@ void SurgeSynthProcessor::handleNoteOff(juce::MidiKeyboardState *source, int mid
midiFromGUI.push(midiR(midiChannel - 1, midiNoteNumber, (int)(127.f * velocity), false));
}

void SurgeSynthProcessor::processBlockBypassed(juce::AudioBuffer<float> &buffer,
juce::MidiBuffer &midiMessages)
{
/*
* Temporary fix while we resolve #5828
*/
processBlock(buffer, midiMessages);
}

//==============================================================================
// This creates new instances of the plugin..
juce::AudioProcessor *JUCE_CALLTYPE createPluginFilter() { return new SurgeSynthProcessor(); }
2 changes: 2 additions & 0 deletions src/surge-xt/SurgeSynthProcessor.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ class SurgeSynthProcessor : public juce::AudioProcessor,
bool canRemoveBusValue = false;
bool canRemoveBus(bool isInput) const override { return canRemoveBusValue; }
void processBlock(juce::AudioBuffer<float> &, juce::MidiBuffer &) override;
void processBlockBypassed(juce::AudioBuffer<float> &buffer,
juce::MidiBuffer &midiMessages) override;
void applyMidi(const juce::MidiMessageMetadata &);
bool supportsMPE() const override { return true; }

Expand Down

0 comments on commit a4c1212

Please sign in to comment.