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!