Implement CLAP plugin initialization

This commit is contained in:
Robbert van der Helm
2022-09-10 16:20:19 +02:00
parent bc2bad3e94
commit 6865cbd937
10 changed files with 133 additions and 19 deletions
+2 -1
View File
@@ -42,6 +42,7 @@
using ClapMainThreadControlRequest = std::variant<WantsConfiguration,
clap::plugin_factory::List,
clap::plugin_factory::Create,
clap::plugin::Init,
clap::plugin::Destroy>;
template <typename S>
@@ -92,7 +93,7 @@ struct ClapAudioThreadControlRequest {
// // deserializing we'll deserialize into the persistent and
// // thread local `process_request` object (see
// // `ClapSockets::add_audio_processor_and_listen`) and then
// // reassign the reference to point to that boject.
// // reassign the reference to point to that object.
// s.ext(request_ref,
// bitsery::ext::MessageReference(process_request_));
// },
+1 -1
View File
@@ -155,7 +155,7 @@ struct Init {
template <typename S>
void serialize(S& s) {
s.value8b(instance_id);
s.boject(supported_host_extensions);
s.object(supported_host_extensions);
}
};
+1 -1
View File
@@ -205,7 +205,7 @@ struct Vst3AudioProcessorRequest {
// deserializing we'll deserialize into the persistent and
// thread local `process_request` object (see
// `Vst3Sockets::add_audio_processor_and_listen`) and then
// reassign the reference to point to that boject.
// reassign the reference to point to that object.
s.ext(request_ref,
bitsery::ext::MessageReference(process_request_));
},