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
@@ -49,6 +49,12 @@ struct ClapHostExtensions {
*/
ClapHostExtensions() noexcept;
/**
* Get the supported extensions as boolean values for serialization
* purposes.
*/
clap::host::SupportedHostExtensions supported() const noexcept;
const clap_host_audio_ports_t* audio_ports = nullptr;
};