From 2e1655892014d4d43c82c70fd855cf04e4fea006 Mon Sep 17 00:00:00 2001 From: tomch Date: Sat, 9 May 2009 14:37:08 +0000 Subject: [PATCH] Bumped APPLEWIN process to ABOVE_NORMAL & main thread to ABOVE_NORMAL --- AppleWin/source/Applewin.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/AppleWin/source/Applewin.cpp b/AppleWin/source/Applewin.cpp index 40902d3c..ad668b38 100644 --- a/AppleWin/source/Applewin.cpp +++ b/AppleWin/source/Applewin.cpp @@ -872,7 +872,16 @@ int APIENTRY WinMain (HINSTANCE passinstance, HINSTANCE, LPSTR lpCmdLine, int) } // - + + // Make APPLEWIN process higher priority + if ( SetPriorityClass(GetCurrentProcess(), ABOVE_NORMAL_PRIORITY_CLASS) ) + { + // Make main thread (for audio) higher priority + SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_ABOVE_NORMAL); + } + + // + do { // DO INITIALIZATION THAT MUST BE REPEATED FOR A RESTART