mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-10 04:30:12 +02:00
Start CLAP audio thread socket
This doesn't do anything yet, but otherwise creating the plugin instance stalls. And it's safer to add a dummy listener here for the time being than to remove the latch and risk forgetting to add it back later.
This commit is contained in:
@@ -423,31 +423,16 @@ void ClapBridge::register_plugin_instance(
|
|||||||
const std::string thread_name = "audio-" + std::to_string(instance_id);
|
const std::string thread_name = "audio-" + std::to_string(instance_id);
|
||||||
pthread_setname_np(pthread_self(), thread_name.c_str());
|
pthread_setname_np(pthread_self(), thread_name.c_str());
|
||||||
|
|
||||||
// TODO: Listen on the socket
|
sockets_.add_audio_thread_and_listen(
|
||||||
// sockets_.add_audio_processor_and_listen(
|
instance_id, socket_listening_latch,
|
||||||
// instance_id, socket_listening_latch,
|
overload{
|
||||||
// overload{
|
[&](const WantsConfiguration&) -> WantsConfiguration::Response {
|
||||||
// [&](YaAudioProcessor::SetBusArrangements& request)
|
// FIXME: This overload shouldn't be here, but
|
||||||
// -> YaAudioProcessor::SetBusArrangements::Response {
|
// bitsery simply won't allow us to serialize the
|
||||||
// const auto& [instance, _] =
|
// variant without it.
|
||||||
// get_instance(request.instance_id);
|
return {};
|
||||||
|
},
|
||||||
// // HACK: WA Production Imperfect CLAP somehow requires
|
});
|
||||||
// // `inputs` to be a valid pointer, even if there
|
|
||||||
// // are no inputs.
|
|
||||||
// Steinberg::Vst::SpeakerArrangement empty_arrangement =
|
|
||||||
// 0b00000000;
|
|
||||||
|
|
||||||
// return instance.interfaces.audio_processor
|
|
||||||
// ->setBusArrangements(
|
|
||||||
// request.num_ins > 0 ? request.inputs.data()
|
|
||||||
// : &empty_arrangement,
|
|
||||||
// request.num_ins,
|
|
||||||
// request.num_outs > 0 ? request.outputs.data()
|
|
||||||
// : &empty_arrangement,
|
|
||||||
// request.num_outs);
|
|
||||||
// },
|
|
||||||
// });
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Wait for the new socket to be listening on before continuing. Otherwise
|
// Wait for the new socket to be listening on before continuing. Otherwise
|
||||||
|
|||||||
Reference in New Issue
Block a user