From a7f03338568df8790f447e2411e7c76a25a14a7a Mon Sep 17 00:00:00 2001 From: Paul Walker Date: Sun, 29 Dec 2024 13:51:46 -0500 Subject: [PATCH] Implement clap_plugin_t::reset --- doc/design.md | 1 - src/clap/six-sines-clap.cpp | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/design.md b/doc/design.md index 8c7a850..0e76ddc 100644 --- a/doc/design.md +++ b/doc/design.md @@ -35,7 +35,6 @@ GENERAL AND CLEANUPS - Don't send VU etc when editor not attached - Write a better README - Write some semblance of documentation -- Make pipeline have a release stage THINGS I DIDNT DO - 90%-100% of internal nyquist mute fades (maybe ship without this tho) diff --git a/src/clap/six-sines-clap.cpp b/src/clap/six-sines-clap.cpp index 52da586..cce0c81 100644 --- a/src/clap/six-sines-clap.cpp +++ b/src/clap/six-sines-clap.cpp @@ -161,6 +161,12 @@ struct SixSinesClap : public plugHelper_t, sst::clap_juce_shim::EditorProvider } return CLAP_PROCESS_CONTINUE; } + + void reset() noexcept override + { + engine->voiceManager->allSoundsOff(); + } + bool handleEvent(const clap_event_header_t *nextEvent) { auto &vm = engine->voiceManager;