File tree 3 files changed +11
-0
lines changed
3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -338,6 +338,12 @@ void Plugin::stop_processing()
338
338
_plugin->stop_processing (_plugin);
339
339
}
340
340
341
+ void Plugin::reset ()
342
+ {
343
+ auto thisFn = AlwaysAudioThread ();
344
+ _plugin->reset (_plugin);
345
+ }
346
+
341
347
// void Plugin::process(const clap_process_t* data)
342
348
// {
343
349
// auto thisFn = AlwaysAudioThread();
Original file line number Diff line number Diff line change @@ -178,6 +178,7 @@ class Plugin
178
178
void deactivate () const ;
179
179
bool start_processing ();
180
180
void stop_processing ();
181
+ void reset ();
181
182
// void process(const clap_process_t* data);
182
183
const clap_plugin_gui_t * getUI () const ;
183
184
Original file line number Diff line number Diff line change @@ -309,6 +309,10 @@ tresult PLUGIN_API ClapAsVst3::setProcessing(TBool state)
309
309
{
310
310
_processing = false ;
311
311
_plugin->stop_processing ();
312
+
313
+ // VST3 has no specific reset - but it should happen when setprocessing is being called
314
+ // https://steinbergmedia.github.io/vst3_dev_portal/pages/Technical+Documentation/Workflow+Diagrams/Audio+Processor+Call+Sequence.html
315
+ _plugin->reset ();
312
316
}
313
317
}
314
318
return result;
You can’t perform that action at this time.
0 commit comments