diff options
author | Chris Robinson <[email protected]> | 2010-01-11 05:37:20 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-01-11 05:37:20 -0800 |
commit | 705849ca7371176d4e645b92898cb9a235602f9f (patch) | |
tree | bd6f3825bc2f84d1dff371a73c4e36baeafd2d26 /Alc/ALc.c | |
parent | 1a57f095e8970f11edccd6f122b7a87391b04166 (diff) |
Add an option for point resampling
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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]) { |