aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-09-15 22:18:13 -0700
committerChris Robinson <[email protected]>2009-09-15 22:18:13 -0700
commit49648fe22dec8fb5a783d8a7e3929b3231f6f4f4 (patch)
tree91476b2a2a76072128fe586400577fadfc179080 /Alc/ALc.c
parent9f037e89802a7b4fc6c287bab97b85050bbd6721 (diff)
Make a GetConfigValueBool function and use it
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 049a62d7..0202f60a 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -302,11 +302,7 @@ static void alc_init(void)
BackendList[i].Probe(CAPTURE_DEVICE_PROBE);
}
- str = GetConfigValue(NULL, "stereodup", "false");
- DuplicateStereo = (strcasecmp(str, "true") == 0 ||
- strcasecmp(str, "yes") == 0 ||
- strcasecmp(str, "on") == 0 ||
- atoi(str) != 0);
+ DuplicateStereo = GetConfigValueBool(NULL, "stereodup", 0);
str = GetConfigValue(NULL, "excludefx", "");
if(str[0])