aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-01-11 05:37:20 -0800
committerChris Robinson <[email protected]>2010-01-11 05:37:20 -0800
commit705849ca7371176d4e645b92898cb9a235602f9f (patch)
treebd6f3825bc2f84d1dff371a73c4e36baeafd2d26 /Alc/ALc.c
parent1a57f095e8970f11edccd6f122b7a87391b04166 (diff)
Add an option for point resampling
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])
{