free-audio / clap-juce-extensions

MIT License
149 stars 20 forks source link

Add checks for user-facing function-pointers #126

Closed jatinchowdhury18 closed 1 year ago

jatinchowdhury18 commented 1 year ago

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.