aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/hrtf.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-09-19 11:29:18 -0700
committerChris Robinson <[email protected]>2011-09-19 11:29:18 -0700
commitedb386eb1edaed1661089064bab57c8d39c52a15 (patch)
treeb0551187a3003a117e591ff87d459ee95eb3be4c /Alc/hrtf.c
parentcc3dd648ace1f1276e909dcb07adf782a39f1cf3 (diff)
Add a ConfigValueStr function, to return the string through a parameter
Diffstat (limited to 'Alc/hrtf.c')
-rw-r--r--Alc/hrtf.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/Alc/hrtf.c b/Alc/hrtf.c
index a5aa4a6c..5da5bed3 100644
--- a/Alc/hrtf.c
+++ b/Alc/hrtf.c
@@ -315,10 +315,11 @@ const struct Hrtf *GetHrtf(ALCdevice *device)
void InitHrtf(void)
{
- char *fnamelist, *next;
+ char *fnamelist=NULL, *next=NULL;
+ const char *val;
- fnamelist = strdup(GetConfigValue(NULL, "hrtf_tables", ""));
- next = fnamelist;
+ if(ConfigValueStr(NULL, "hrtf_tables", &val))
+ next = fnamelist = strdup(val);
while(next && *next)
{
const ALubyte maxDelay = SRC_HISTORY_LENGTH-1;