Add functions for registering CLAP plugin proxies

This commit is contained in:
Robbert van der Helm
2022-09-09 14:51:59 +02:00
parent bacda47671
commit a9bb60772d
6 changed files with 79 additions and 58 deletions
@@ -52,7 +52,7 @@ class clap_host_proxy {
/**
* The instance ID of the plugin instance this proxy belongs to.
*/
inline size_t owner_isntance_id() const { return owner_instance_id_; }
inline size_t owner_instance_id() const { return owner_instance_id_; }
static const void* CLAP_ABI host_get_extension(const struct clap_host* host,
const char* extension_id);
+2 -2
View File
@@ -406,7 +406,7 @@ void ClapBridge::register_plugin_instance(
// This instance ID has already been generated because the host proxy has to
// be created before the plugin instance
const size_t instance_id = host_proxy->owner_isntance_id();
const size_t instance_id = host_proxy->owner_instance_id();
object_instances_.emplace(
instance_id, ClapPluginInstance(plugin, std::move(host_proxy)));
@@ -441,7 +441,7 @@ void ClapBridge::register_plugin_instance(
socket_listening_latch.get_future().wait();
}
void ClapBridge::unregister_object_instance(size_t instance_id) {
void ClapBridge::unregister_plugin_instance(size_t instance_id) {
sockets_.remove_audio_thread(instance_id);
// Remove the instance from within the main IO context so
+1 -1
View File
@@ -358,7 +358,7 @@ class ClapBridge : public HostBridge {
* Remove an object from `object_instances_`. Will also tear down the
* instance's audio thread.
*/
void unregister_object_instance(size_t instance_id);
void unregister_plugin_instance(size_t instance_id);
/**
* The configuration for this instance of yabridge based on the path to the