diff options
author | Chris Robinson <[email protected]> | 2008-01-19 19:38:06 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2008-01-19 19:38:06 -0800 |
commit | bc963463f3f089a53375e3783c48340a50f65d09 (patch) | |
tree | 97d82bc1e0e4d2aa5691ba74022199c419a13789 /Alc | |
parent | 86b7b3d54b7b753148612919a17610058841ed64 (diff) |
Add an option for setting the max number of sources
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/ALc.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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++) |