mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-14 12:30:00 +02:00
Add CLAP audio thread callback sockets
The initialization here is a bit funky and happens in lockstep to ensure both sides are synchronized.
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <future>
|
||||
#include <thread>
|
||||
#include <vector>
|
||||
|
||||
#include <clap/ext/audio-ports.h>
|
||||
@@ -201,6 +202,13 @@ class clap_plugin_proxy {
|
||||
*/
|
||||
ClapHostExtensions host_extensions_;
|
||||
|
||||
/**
|
||||
* A handler for receiving audio thread callbacks. Set when initializing the
|
||||
* plugin. This is needed to minimize blocking during those callbacks, as
|
||||
* certain CLAP extensions allow callbacks on the audio thread.
|
||||
*/
|
||||
std::jthread audio_thread_handler_;
|
||||
|
||||
private:
|
||||
ClapPluginBridge& bridge_;
|
||||
size_t instance_id_;
|
||||
|
||||
Reference in New Issue
Block a user