7
44
Fork
You've already forked nice-plug
22

CLAP: Plugin::initialize doesn't get called on clap_plugin_render::set #52

Closed
opened 2026年06月22日 16:06:53 +02:00 by Quant1um · 0 comments

clap_plugin_render::set could be called even while the plugin is in the active state. Current implementation only sets an atomic variable for ProcessMode to be applied on the next Plugin::initialize call, so host's render mode state and plugin render mode state gets out of sync until the next restart.

A viable solution could be to call clap_host::request_restart in clap_plugin_render::set or to reinitialize manually.

Thanks @edwloef for finding this!

`clap_plugin_render::set` could be called even while the plugin is in the `active` state. Current implementation only sets an atomic variable for `ProcessMode` to be applied on the next `Plugin::initialize` call, so host's render mode state and plugin render mode state gets out of sync until the next restart. A viable solution could be to call `clap_host::request_restart` in `clap_plugin_render::set` or to reinitialize manually. Thanks @edwloef for finding this!
Sign in to join this conversation.
No Branch/Tag specified
main
resizing
dev
standalone_fixes
FoobarIT/main
fixes
egui_3rd_party
vizia_baseview_update
egui_32
softbuffer
byo_gui_examples
raw_graphics_examples
v0.1.9
v0.1.8
v0.1.7
v0.1.6
v0.1.5
v0.1.3
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
RustAudio/nice-plug#52
Reference in a new issue
RustAudio/nice-plug
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?