Replies: 5 comments 38 replies
-
The host code for plugin setup basically does this:
And the timer implementation does this:
In a nutshell, I was expecting plugin->init() to maybe query host extensions, but not use them yet, because the host has not had a chance to query the plugin for its capabilities yet. The spec doesn't say anything specific here, so far I see the following problems:
|
Beta Was this translation helpful? Give feedback.
-
Yes, I think extensions can and should only be queried during |
Beta Was this translation helpful? Give feedback.
-
The plugin can query the host extensions in |
Beta Was this translation helpful? Give feedback.
-
I've changed my code to make registering a timer in init() work. Basically I just removed a defensive check. |
Beta Was this translation helpful? Give feedback.
-
About the "odd" situation of the host having to cleanup resources due to extension use before init() returns false... I think it'd be good if the spec at least recommended that plugin->init() does return false; as early as possible, best before it starts to use any host extensions. |
Beta Was this translation helpful? Give feedback.
-
Interesting conversation with @tim-janik tonight about a problem his host has with surge
The problem is as follows
::init
methodSo either
1: surge is wrong and I should move my timer to activate or
2: his host is wrong and extensions should be available in
clap_plugin::init
but the spec is silent on this and so we wanted to raise this discussion.
@abique @robbert-vdh @Bremmers - what say you?
We can specify it in 1.0.3 also with a change to plugin.h init.
Beta Was this translation helpful? Give feedback.
All reactions