diff options
author | Chris Robinson <[email protected]> | 2010-06-06 00:53:29 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-06-06 00:53:29 -0700 |
commit | ce0727097391ea32eefe5cac592b1ca8a2a2c397 (patch) | |
tree | e83c9347f8514e93cd3ea516ea1145cb18625f9a | |
parent | ac05863f729d46e6173724a3464f81aafc1b3d1e (diff) |
Remove support for the old 'refresh' config option
-rw-r--r-- | Alc/ALc.c | 7 | ||||
-rw-r--r-- | alsoftrc.sample | 3 |
2 files changed, 3 insertions, 7 deletions
@@ -1997,12 +1997,9 @@ ALC_API ALCdevice* ALC_APIENTRY alcOpenDevice(const ALCchar *deviceName) if(device->NumUpdates < 2) device->NumUpdates = 4; - i = GetConfigValueInt(NULL, "refresh", 4096); - if(i <= 0) i = 4096; - - device->UpdateSize = GetConfigValueInt(NULL, "period_size", i/device->NumUpdates); + device->UpdateSize = GetConfigValueInt(NULL, "period_size", 1024); if(device->UpdateSize <= 0) - device->UpdateSize = i/device->NumUpdates; + device->UpdateSize = 1024; device->MaxNoOfSources = GetConfigValueInt(NULL, "sources", 256); if((ALint)device->MaxNoOfSources <= 0) diff --git a/alsoftrc.sample b/alsoftrc.sample index e5f0203d..a34c7333 100644 --- a/alsoftrc.sample +++ b/alsoftrc.sample @@ -79,8 +79,7 @@ ## period_size: # Sets the update period size, in frames. This is the number of frames needed -# for each mixing update. If the deprecated 'refresh' option is specified and -# this isn't, the value will be calculated as size = refresh/periods. +# for each mixing update. #period_size = 1024 ## periods: |