From f21223cf60078db56464c67760cf5bdcecb8ec75 Mon Sep 17 00:00:00 2001 From: Stephane Letz Date: Mon, 28 Mar 2011 21:20:18 +0200 Subject: [PATCH] Correct MIDI threads priority. --- macosx/coremidi/JackCoreMidiOutputPort.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/macosx/coremidi/JackCoreMidiOutputPort.cpp b/macosx/coremidi/JackCoreMidiOutputPort.cpp index ad333504..15a04f76 100644 --- a/macosx/coremidi/JackCoreMidiOutputPort.cpp +++ b/macosx/coremidi/JackCoreMidiOutputPort.cpp @@ -171,13 +171,12 @@ JackCoreMidiOutputPort::Init() { set_threaded_log_function(); - // OSX only... + // OSX only, values read in RT CoreMidi thread UInt64 period = 0; - UInt64 computation = 500 * 1000; + UInt64 computation = 250 * 1000; UInt64 constraint = 500 * 1000; thread->SetParams(period, computation, constraint); - // Use the server priority : y if (thread->AcquireSelfRealTime()) { jack_error("JackCoreMidiOutputPort::Init - could not acquire realtime " "scheduling. Continuing anyway.");