So when the plugin is a CLAP plugin, these function pointers should always be set to valid std::functions. But then the user has to check if they're in a CLAP plugin before calling them. Now the user can just call these methods fearlessly, and if the plugin is actually a VST3, Standalone, etc, then the function will just be a no-op.
So when the plugin is a CLAP plugin, these function pointers should always be set to valid
std::function
s. But then the user has to check if they're in a CLAP plugin before calling them. Now the user can just call these methods fearlessly, and if the plugin is actually a VST3, Standalone, etc, then the function will just be a no-op.