diff --git a/source/jackbridge/JackBridge1.cpp b/source/jackbridge/JackBridge1.cpp index ed8f7bbc7..6bac1fcc1 100644 --- a/source/jackbridge/JackBridge1.cpp +++ b/source/jackbridge/JackBridge1.cpp @@ -649,9 +649,17 @@ struct WineBridge { inst.creator_arg = arg; inst.creator_handle = ::CreateEventW(nullptr, false, false, nullptr); - ::CreateThread(NULL, 0, thread_creator_helper, arg, 0, 0); - ::WaitForSingleObject(inst.creator_handle, INFINITE); + HANDLE handle = ::CreateThread(nullptr, 0, thread_creator_helper, arg, CREATE_SUSPENDED, nullptr); + + if (handle == INVALID_HANDLE_VALUE) + return 1; + + // TODO read attrs and decide this + SetThreadPriority(handle, THREAD_PRIORITY_TIME_CRITICAL); + ResumeThread(handle); + + ::WaitForSingleObject(inst.creator_handle, INFINITE); *thread_id = inst.creator_pthread; return 0; } diff --git a/source/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp b/source/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp index 2a33c4fe9..ff225ee2a 100644 --- a/source/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp +++ b/source/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp @@ -1426,7 +1426,7 @@ private: static pointer_sized_int getHostName (char* name) { - String hostName ("Juce VST Host"); + String hostName ("Carla Plugin Host"); if (auto* app = JUCEApplicationBase::getInstance()) hostName = app->getApplicationName();