mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-14 20:40:03 +02:00
Also sync VST3 audio thread scheduling priorities
The exact same thing as the last commit, but for VST3 plugins.
This commit is contained in:
@@ -1129,6 +1129,14 @@ size_t Vst3Bridge::register_object_instance(
|
||||
},
|
||||
[&](YaAudioProcessor::Process& request)
|
||||
-> YaAudioProcessor::Process::Response {
|
||||
// As suggested by Jack Winter, we'll synchronize this
|
||||
// thread's audio processing priority with that of the
|
||||
// host's audio thread every once in a while
|
||||
if (request.new_realtime_priority) {
|
||||
set_realtime_priority(
|
||||
true, *request.new_realtime_priority);
|
||||
}
|
||||
|
||||
const tresult result =
|
||||
object_instances[request.instance_id]
|
||||
.audio_processor->process(request.data.get());
|
||||
|
||||
Reference in New Issue
Block a user