mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-15 13:00:02 +02:00
Add functions for registering CLAP plugin proxies
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user