aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2015-09-04 15:47:48 -0700
committerChris Robinson <[email protected]>2015-09-04 15:47:48 -0700
commit5f40daabc239716517353b4c00f9714a71794d70 (patch)
tree96ccbb9b17b95090075315646fe70019d0ff4808
parent30398083f46478ab358c0310d093632f991be12d (diff)
Reverse the device and block names for device-specific options
-rw-r--r--Alc/alcConfig.c2
-rw-r--r--alsoftrc.sample2
2 files changed, 2 insertions, 2 deletions
diff --git a/Alc/alcConfig.c b/Alc/alcConfig.c
index c5d1055a..b69631ea 100644
--- a/Alc/alcConfig.c
+++ b/Alc/alcConfig.c
@@ -466,7 +466,7 @@ const char *GetConfigValue(const char *devName, const char *blockName, const cha
if(blockName && strcasecmp(blockName, "general") != 0)
{
if(devName)
- snprintf(key, sizeof(key), "%s/%s/%s", devName, blockName, keyName);
+ snprintf(key, sizeof(key), "%s/%s/%s", blockName, devName, keyName);
else
snprintf(key, sizeof(key), "%s/%s", blockName, keyName);
}
diff --git a/alsoftrc.sample b/alsoftrc.sample
index 0c57e220..3f4a0c63 100644
--- a/alsoftrc.sample
+++ b/alsoftrc.sample
@@ -11,7 +11,7 @@
# Device-specific values may be specified by including the device name in the
# block name, with "general" replaced by the device name. That is, general
# options for the device "Name of Device" would be in the [Name of Device]
-# block, while ALSA options would be in the [Name of Device/alsa] block.
+# block, while ALSA options would be in the [alsa/Name of Device] block.
# Options marked as "(global)" are not influenced by the device.
#
# The system-wide settings can be put in /etc/openal/alsoft.conf and user-