Also sync VST3 audio thread scheduling priorities

The exact same thing as the last commit, but for VST3 plugins.
This commit is contained in:
Robbert van der Helm
2021-01-23 15:22:10 +01:00
parent f03b9b1497
commit d5e4424463
6 changed files with 50 additions and 10 deletions
+8
View File
@@ -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());