Skip to content

Commit f7c627f

Browse files
authored
Update CJE and make SurgeFX respond to ::reset() (surge-synthesizer#7944)
1. CJE gets the param fix and the reset fix 2. SurgeFX implemetns ::reset as fx->init if fx.
1 parent 1467621 commit f7c627f

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

src/surge-fx/SurgeFXProcessor.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,14 @@ void SurgefxAudioProcessor::releaseResources()
216216
// spare memory, etc.
217217
}
218218

219+
void SurgefxAudioProcessor::reset()
220+
{
221+
if (surge_effect)
222+
{
223+
surge_effect->init();
224+
}
225+
}
226+
219227
bool SurgefxAudioProcessor::isBusesLayoutSupported(const BusesLayout &layouts) const
220228
{
221229
bool inputValid = layouts.getMainInputChannelSet() == juce::AudioChannelSet::mono() ||

src/surge-fx/SurgeFXProcessor.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ class SurgefxAudioProcessor : public juce::AudioProcessor,
106106
bool producesMidi() const override;
107107
bool isMidiEffect() const override;
108108
double getTailLengthSeconds() const override;
109+
void reset() override;
109110

110111
//==============================================================================
111112
int getNumPrograms() override;

0 commit comments

Comments
 (0)