Deduplicate CLAP extension support queries

They're only queried once now and the booleans are derived from the
stored pointers.
This commit is contained in:
Robbert van der Helm
2022-09-12 18:42:52 +02:00
parent b31bee24b6
commit 51edef4427
8 changed files with 48 additions and 40 deletions
+6
View File
@@ -60,6 +60,12 @@ struct ClapPluginExtensions {
*/
ClapPluginExtensions() noexcept;
/**
* Get the supported extensions as boolean values for serialization
* purposes.
*/
clap::plugin::SupportedPluginExtensions supported() const noexcept;
const clap_plugin_audio_ports_t* audio_ports = nullptr;
};