From d0679708c9aad3aa39505fb06b4ec37a0840e76d Mon Sep 17 00:00:00 2001 From: Stephane Letz Date: Mon, 13 Apr 2015 12:08:48 +0200 Subject: [PATCH] Correct priority management for Windows. --- common/JackEngineControl.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/JackEngineControl.h b/common/JackEngineControl.h index 2a254b8f..32526f0e 100644 --- a/common/JackEngineControl.h +++ b/common/JackEngineControl.h @@ -104,7 +104,12 @@ struct SERVER_EXPORT JackEngineControl : public JackShmMem fRealTime = rt; fSavedRealTime = false; fServerPriority = priority; + + #ifdef WIN32 + fClientPriority = (rt) ? priority - 3 : 0; + #else fClientPriority = (rt) ? priority - 5 : 0; + #endif fMaxClientPriority = (rt) ? priority - 1 : 0; fVerbose = verbose; fPrevCycleTime = 0;