Support the hide_daw option for CLAP.

This commit is contained in:
Robbert van der Helm
2022-09-11 19:29:18 +02:00
parent f64e5c4353
commit e7fe5426c8
2 changed files with 17 additions and 10 deletions
@@ -28,8 +28,15 @@ clap_host_proxy::clap_host_proxy(ClapBridge& bridge,
host_vtable_(clap_host_t{
.clap_version = clamp_clap_version(host_args_.clap_version),
.host_data = this,
.name = host_args_.name.c_str(),
.vendor = host_args_.vendor ? host_args_.vendor->c_str() : nullptr,
// HACK: Certain plugins may have undesirable DAW-specific behaviour.
// Chromaphone 3 for instance has broken text input dialogs when
// using Bitwig.
.name = bridge_.config_.hide_daw ? product_name_override
: host_args_.name.c_str(),
.vendor =
bridge_.config_.hide_daw
? vendor_name_override
: (host_args_.vendor ? host_args_.vendor->c_str() : nullptr),
.url = host_args_.url ? host_args_.url->c_str() : nullptr,
.version = host_args_.version.c_str(),
.get_extension = host_get_extension,
+8 -8
View File
@@ -326,6 +326,14 @@ class ClapBridge : public HostBridge {
*/
ClapLogger logger_;
/**
* The configuration for this instance of yabridge based on the path to the
* `.so` (or well `.clap`) file that got loaded by the host. This
* configuration gets loaded on the plugin side, and then sent over to the
* Wine host as part of the startup process.
*/
Configuration config_;
private:
/**
* Generate a nique instance identifier using an atomic fetch-and-add. This
@@ -363,14 +371,6 @@ class ClapBridge : public HostBridge {
*/
void unregister_plugin_instance(size_t instance_id);
/**
* The configuration for this instance of yabridge based on the path to the
* `.so` (or well `.clap`) file that got loaded by the host. This
* configuration gets loaded on the plugin side, and then sent over to the
* Wine host as part of the startup process.
*/
Configuration config_;
/**
* The shared library handle of the CLAP plugin.
*/