Browse Source

Correct MIDI threads priority.

tags/1.9.8
Stephane Letz 15 years ago
parent
commit
f21223cf60
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      macosx/coremidi/JackCoreMidiOutputPort.cpp

+ 2
- 3
macosx/coremidi/JackCoreMidiOutputPort.cpp View File

@@ -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.");


Loading…
Cancel
Save