Skip to content

Commit

Permalink
Implement clap_plugin_t::reset
Browse files Browse the repository at this point in the history
  • Loading branch information
baconpaul committed Dec 29, 2024
1 parent 42faa30 commit a7f0333
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion doc/design.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 6 additions & 0 deletions src/clap/six-sines-clap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a7f0333

Please sign in to comment.