mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-06-20 19:03:56 +02:00
Implement CLAP callback requests
This commit is contained in:
@@ -305,6 +305,15 @@ class ClapBridge : public HostBridge {
|
||||
// }
|
||||
// }
|
||||
|
||||
/**
|
||||
* Fetch the plugin instance along with a lock valid for the instance's
|
||||
* lifetime. This is mostly just to save some boilerplate everywhere. Use
|
||||
* C++17's structured binding as syntactic sugar to not have to deal with
|
||||
* the lock handle.
|
||||
*/
|
||||
std::pair<ClapPluginInstance&, std::shared_lock<std::shared_mutex>>
|
||||
get_instance(size_t instance_id) noexcept;
|
||||
|
||||
/**
|
||||
* A logger instance we'll use to log about failed
|
||||
* `clap_host::get_extension()` calls, so they can be hidden on verbosity
|
||||
@@ -324,15 +333,6 @@ class ClapBridge : public HostBridge {
|
||||
*/
|
||||
size_t generate_instance_id() noexcept;
|
||||
|
||||
/**
|
||||
* Fetch the plugin instance along with a lock valid for the instance's
|
||||
* lifetime. This is mostly just to save some boilerplate everywhere. Use
|
||||
* C++17's structured binding as syntactic sugar to not have to deal with
|
||||
* the lock handle.
|
||||
*/
|
||||
std::pair<ClapPluginInstance&, std::shared_lock<std::shared_mutex>>
|
||||
get_instance(size_t instance_id) noexcept;
|
||||
|
||||
/**
|
||||
* Sets up the shared memory audio buffers for a plugin instance plugin
|
||||
* instance and return the configuration so the native plugin can connect to
|
||||
|
||||
Reference in New Issue
Block a user