diff options
author | Chris Robinson <[email protected]> | 2008-07-26 21:07:08 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2008-07-26 21:07:08 -0700 |
commit | 869b041f2f8364c7dcceb20393b47d101806a131 (patch) | |
tree | 0ad0fda007257b3fe8f2345cdbc4a00d8ba339e0 | |
parent | 8621fbb01514a32bcfd6c4292f424829553f08dd (diff) |
Reduce the default buffer size to 4096
Should help with latency issues some people have and not put too much extra
burden on the mixer, hopefully
-rw-r--r-- | Alc/ALc.c | 4 | ||||
-rw-r--r-- | alsoftrc.sample | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -1218,9 +1218,9 @@ ALCAPI ALCdevice* ALCAPIENTRY alcOpenDevice(const ALCchar *deviceName) if(!aluChannelsFromFormat(device->Format)) device->Format = AL_FORMAT_STEREO16; - device->UpdateSize = GetConfigValueInt(NULL, "refresh", 8192); + device->UpdateSize = GetConfigValueInt(NULL, "refresh", 4096); if((ALint)device->UpdateSize <= 0) - device->UpdateSize = 8192; + device->UpdateSize = 4096; device->MaxNoOfSources = GetConfigValueInt(NULL, "sources", 256); if((ALint)device->MaxNoOfSources <= 0) diff --git a/alsoftrc.sample b/alsoftrc.sample index 06d32dc9..acc64b53 100644 --- a/alsoftrc.sample +++ b/alsoftrc.sample @@ -38,7 +38,7 @@ cf_level = 0 # Sets the crossfeed level for stereo output. Valid values are: frequency = 44100 # Sets the output frequency. Default is 44100 -refresh = 8192 # Sets the buffer size, in frames. Default is 8192. Note that +refresh = 4096 # Sets the buffer size, in frames. Default is 4096. Note that # the actual granularity may or may not be less than this. sources = 256 # Sets the maximum number of allocatable sources. Lower values |