diff options
author | Chris Robinson <[email protected]> | 2015-08-28 14:10:39 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2015-08-28 14:10:39 -0700 |
commit | e5fa4ee25dae8b242761052641dca5a4f8091359 (patch) | |
tree | 87a4e70d7465ae651e671d62c2e6e399bb210a19 /OpenAL32 | |
parent | bbc16e2c15b139cf2ef14eff9b3bcdb4933a5b0e (diff) |
Allow for device-specific config values
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/Include/alMain.h | 16 | ||||
-rw-r--r-- | OpenAL32/alSoundfont.c | 2 |
2 files changed, 9 insertions, 9 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index ae060014..c9e5e748 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -894,14 +894,14 @@ size_t ll_ringbuffer_write_space(const ll_ringbuffer_t *rb); void ReadALConfig(void); void FreeALConfig(void); -int ConfigValueExists(const char *blockName, const char *keyName); -const char *GetConfigValue(const char *blockName, const char *keyName, const char *def); -int GetConfigValueBool(const char *blockName, const char *keyName, int def); -int ConfigValueStr(const char *blockName, const char *keyName, const char **ret); -int ConfigValueInt(const char *blockName, const char *keyName, int *ret); -int ConfigValueUInt(const char *blockName, const char *keyName, unsigned int *ret); -int ConfigValueFloat(const char *blockName, const char *keyName, float *ret); -int ConfigValueBool(const char *blockName, const char *keyName, int *ret); +int ConfigValueExists(const char *devName, const char *blockName, const char *keyName); +const char *GetConfigValue(const char *devName, const char *blockName, const char *keyName, const char *def); +int GetConfigValueBool(const char *devName, const char *blockName, const char *keyName, int def); +int ConfigValueStr(const char *devName, const char *blockName, const char *keyName, const char **ret); +int ConfigValueInt(const char *devName, const char *blockName, const char *keyName, int *ret); +int ConfigValueUInt(const char *devName, const char *blockName, const char *keyName, unsigned int *ret); +int ConfigValueFloat(const char *devName, const char *blockName, const char *keyName, float *ret); +int ConfigValueBool(const char *devName, const char *blockName, const char *keyName, int *ret); void SetRTPriority(void); diff --git a/OpenAL32/alSoundfont.c b/OpenAL32/alSoundfont.c index 8ea4c750..96feed46 100644 --- a/OpenAL32/alSoundfont.c +++ b/OpenAL32/alSoundfont.c @@ -318,7 +318,7 @@ ALsoundfont *ALsoundfont_getDefSoundfont(ALCcontext *context) namelist = getenv("ALSOFT_SOUNDFONT"); if(!namelist || !namelist[0]) - ConfigValueStr("midi", "soundfont", &namelist); + ConfigValueStr(al_string_get_cstr(device->DeviceName), "midi", "soundfont", &namelist); while(namelist && namelist[0]) { const char *next, *end; |