Commit 8bc654e5 authored by sletz's avatar sletz
Browse files

Setup thread RT parameters for OSX in JackNetAdapter.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3276 0c269be4-1314-0410-8aa9-9f06e86f4224
parent 3d08431f
......@@ -217,6 +217,11 @@ namespace Jack
SetAdaptedBufferSize ( fParams.fPeriodSize );
SetAdaptedSampleRate ( fParams.fSampleRate );
// Will do "something" on OSX only...
fThread.SetParams(JackServerGlobals::fInstance->GetEngineControl()->fPeriod,
JackServerGlobals::fInstance->GetEngineControl()->fComputation,
JackServerGlobals::fInstance->GetEngineControl()->fConstraint);
if (fThread.AcquireRealTime ( JackServerGlobals::fInstance->GetEngineControl()->fClientPriority ) < 0) {
jack_error("AcquireRealTime error");
} else {
......@@ -428,7 +433,7 @@ namespace Jack
ResetRingBuffers();
}
return true;
return 0;
}
} // namespace Jack
......
......@@ -126,7 +126,7 @@ namespace Jack
fParams.fSlaveSyncMode = fEngineControl->fSyncMode;
//display some additional infos
jack_info ( "Net driver started in %s mode %s Master's transport sync.",
jack_info ( "NetDriver started in %s mode %s Master's transport sync.",
( fParams.fSlaveSyncMode ) ? "sync" : "async", ( fParams.fTransportSync ) ? "with" : "without" );
//init network
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment