From c765b2ad901b178ea749df7ee465b4b7f4773925 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 --- source/Applewin.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/source/Applewin.cpp b/source/Applewin.cpp index 40902d3c..ad668b38 100644 --- a/source/Applewin.cpp +++ b/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