1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Re-added a WaveLab workaround in the VST wrapper

This commit is contained in:
jules 2016-04-14 11:38:08 +01:00
parent be3acc9768
commit e1205ec36c

View file

@ -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