diff options
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r-- | alc/alc.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp index 267e5fef..5ec0ab11 100644 --- a/alc/alc.cpp +++ b/alc/alc.cpp @@ -1130,6 +1130,8 @@ void alc_initconfig(void) if(auto priopt = ConfigValueInt(nullptr, nullptr, "rt-prio")) RTPrioLevel = *priopt; + if(auto limopt = ConfigValueBool(nullptr, nullptr, "rt-time-limit")) + AllowRTTimeLimit = *limopt; aluInit(); aluInitMixer(); @@ -1317,6 +1319,9 @@ void ProbeCaptureDeviceList() /* Mixing thread piority level */ int RTPrioLevel{1}; +/* Allow reducing the process's RTTime limit for RTKit. */ +bool AllowRTTimeLimit{true}; + FILE *gLogFile{stderr}; #ifdef _DEBUG LogLevel gLogLevel{LogLevel::Warning}; |