summaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2008-02-06 22:18:50 -0800
committerChris Robinson <[email protected]>2008-02-06 22:18:50 -0800
commitb4ffdfab81827626a3da2882218d401fd83cf375 (patch)
treeae5a0cc574ca67c5b0a6f77c7f4ea7ee32ece8de /Alc/ALc.c
parent1ea4aac799b1751dc0616259ed9c167152da72c7 (diff)
Add an option for duplicating stereo sources on the back speakers
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index b485ec2e..a21b90db 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -201,7 +201,7 @@ static void InitAL(void)
if(!done)
{
int i;
- const char *devs;
+ const char *devs, *str;
InitializeCriticalSection(&_alMutex);
ALTHUNK_INIT();
@@ -250,6 +250,12 @@ static void InitAL(void)
for(i = 0;BackendList[i].Init;i++)
BackendList[i].Init(&BackendList[i].Funcs);
done = 1;
+
+ str = GetConfigValue(NULL, "stereodup", "false");
+ DuplicateStereo = (strcasecmp(str, "true") == 0 ||
+ strcasecmp(str, "yes") == 0 ||
+ strcasecmp(str, "on") == 0 ||
+ atoi(str) != 0);
}
}