summaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2008-01-19 19:38:06 -0800
committerChris Robinson <[email protected]>2008-01-19 19:38:06 -0800
commitbc963463f3f089a53375e3783c48340a50f65d09 (patch)
tree97d82bc1e0e4d2aa5691ba74022199c419a13789 /Alc
parent86b7b3d54b7b753148612919a17610058841ed64 (diff)
Add an option for setting the max number of sources
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 0d6af1dc..83ff7ba4 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1156,7 +1156,9 @@ ALCAPI ALCdevice* ALCAPIENTRY alcOpenDevice(const ALCchar *deviceName)
if((ALint)device->UpdateFreq <= 0)
device->UpdateFreq = 8192;
- device->MaxNoOfSources = 256;
+ device->MaxNoOfSources = GetConfigValueInt(NULL, "sources", 256);
+ if((ALint)device->MaxNoOfSources <= 0)
+ device->MaxNoOfSources = 256;
// Find a playback device to open
for(i = 0;BackendList[i].Init;i++)