mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-16 13:40:05 +02:00
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:
@@ -75,18 +75,11 @@ struct Host {
|
||||
|
||||
/**
|
||||
* Extensions supported by the host. This can only be queried in
|
||||
* `clap_plugin::init()` so it cannot be part of `Host`. We'll create make these
|
||||
* same extensions available to the bridged CLAP plugins using proxies.
|
||||
* `clap_plugin::init()` so it cannot be part of `Host`. Created by
|
||||
* `ClapHostExtensions::supported()`. We'll create make these same extensions
|
||||
* available to the bridged CLAP plugins using proxies.
|
||||
*/
|
||||
struct SupportedHostExtensions {
|
||||
/**
|
||||
* Read the supported extensions from a native CLAP host. This is only valid
|
||||
* once the native host has called `clap_host::init()`.
|
||||
*/
|
||||
SupportedHostExtensions(const clap_host& host);
|
||||
|
||||
SupportedHostExtensions() noexcept {}
|
||||
|
||||
// Don't forget to add new extensions to the log output
|
||||
bool supports_audio_ports = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user