aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 05da7130..15bb01be 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -218,6 +218,9 @@ static const ALchar alExtList[] =
// Mixing Priority Level
ALint RTPrioLevel;
+// Resampler Quality
+resampler_t DefaultResampler;
+
///////////////////////////////////////////////////////
@@ -265,6 +268,10 @@ static void alc_init(void)
RTPrioLevel = GetConfigValueInt(NULL, "rt-prio", 0);
+ DefaultResampler = GetConfigValueInt(NULL, "resampler", LINEAR);
+ if(DefaultResampler >= RESAMPLER_MAX || DefaultResampler < POINT)
+ DefaultResampler = LINEAR;
+
devs = GetConfigValue(NULL, "drivers", "");
if(devs[0])
{