Implement CLAP callback requests

This commit is contained in:
Robbert van der Helm
2022-09-11 18:40:46 +02:00
parent 7151544f99
commit 5d31191806
5 changed files with 54 additions and 21 deletions
+9 -9
View File
@@ -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