aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index df496995..3c43c7a5 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -410,12 +410,6 @@ static void alc_init(void)
int i;
const char *devs, *str;
- InitializeCriticalSection(&g_csMutex);
- ALTHUNK_INIT();
- ReadALConfig();
-
- tls_create(&LocalContext);
-
str = getenv("ALSOFT_LOGFILE");
if(str && str[0])
{
@@ -426,6 +420,12 @@ static void alc_init(void)
if(!LogFile)
LogFile = stderr;
+ InitializeCriticalSection(&g_csMutex);
+ ALTHUNK_INIT();
+ ReadALConfig();
+
+ tls_create(&LocalContext);
+
RTPrioLevel = GetConfigValueInt(NULL, "rt-prio", 0);
DefaultResampler = GetConfigValueInt(NULL, "resampler", RESAMPLER_DEFAULT);