diff options
author | Chris Robinson <[email protected]> | 2020-02-26 09:53:06 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-02-26 09:53:06 -0800 |
commit | b42d241da58eb4dbe949c8b6ba5c0fd80ee021a9 (patch) | |
tree | 7c7fae5033177dfbe82008324772e5b4ae220245 /alc | |
parent | eb49290dabd5ca317337663ff7e8b25a311b83a8 (diff) |
Use real-time priority by default
Diffstat (limited to 'alc')
-rw-r--r-- | alc/alc.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp index 59739e04..42d586c7 100644 --- a/alc/alc.cpp +++ b/alc/alc.cpp @@ -1062,13 +1062,8 @@ void alc_initconfig(void) } FillCPUCaps(capfilter); -#ifdef _WIN32 -#define DEF_MIXER_PRIO 1 -#else -#define DEF_MIXER_PRIO 0 -#endif - RTPrioLevel = ConfigValueInt(nullptr, nullptr, "rt-prio").value_or(DEF_MIXER_PRIO); -#undef DEF_MIXER_PRIO + if(auto priopt = ConfigValueInt(nullptr, nullptr, "rt-prio")) + RTPrioLevel = *priopt; aluInit(); aluInitMixer(); @@ -1244,7 +1239,7 @@ void ProbeCaptureDeviceList() } // namespace /* Mixing thread piority level */ -ALint RTPrioLevel; +ALint RTPrioLevel{1}; FILE *gLogFile{stderr}; #ifdef _DEBUG |