From e1205ec36c19f0cfb03902ed9e18fd0b18169c81 Mon Sep 17 00:00:00 2001 From: jules Date: Thu, 14 Apr 2016 11:38:08 +0100 Subject: [PATCH] Re-added a WaveLab workaround in the VST wrapper --- .../juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp b/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp index 857287d559..2d9ffdfd1e 100644 --- a/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp +++ b/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp @@ -509,6 +509,16 @@ public: resume(); filter->setNonRealtime (getCurrentProcessLevel() == 4 /* kVstProcessLevelOffline */); + + #if JUCE_WINDOWS + if (getHostType().isWavelab()) + { + int priority = GetThreadPriority (GetCurrentThread()); + + if (priority <= THREAD_PRIORITY_NORMAL && priority >= THREAD_PRIORITY_LOWEST) + filter->setNonRealtime (true); + } + #endif } #if JUCE_DEBUG && ! JucePlugin_ProducesMidiOutput