diff options
author | Chris Robinson <[email protected]> | 2011-09-19 11:29:18 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-09-19 11:29:18 -0700 |
commit | edb386eb1edaed1661089064bab57c8d39c52a15 (patch) | |
tree | b0551187a3003a117e591ff87d459ee95eb3be4c /Alc/hrtf.c | |
parent | cc3dd648ace1f1276e909dcb07adf782a39f1cf3 (diff) |
Add a ConfigValueStr function, to return the string through a parameter
Diffstat (limited to 'Alc/hrtf.c')
-rw-r--r-- | Alc/hrtf.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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; |