mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-09 15:15:41 +01:00
fix missing API for no-app-nap when building on OS X < 10.9
This commit is contained in:
parent
0444ce1d5e
commit
91757960cc
1 changed files with 5 additions and 0 deletions
|
|
@ -112,6 +112,11 @@ set_language_preference ()
|
|||
void
|
||||
no_app_nap ()
|
||||
{
|
||||
|
||||
#ifndef NSActivityLatencyCritical
|
||||
#define NSActivityLatencyCritical 0xFF00000000ULL
|
||||
#endif
|
||||
|
||||
if ( [ [ NSProcessInfo processInfo ] respondsToSelector:@selector(beginActivityWithOptions:reason:) ] ) {
|
||||
cout << "Disabling MacOS AppNap\n";
|
||||
[ [ NSProcessInfo processInfo] beginActivityWithOptions:NSActivityLatencyCritical reason:@"realtime audio" ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue