diff options
author | Chris Robinson <[email protected]> | 2009-09-16 23:29:32 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-09-16 23:29:32 -0700 |
commit | fb97ca6022308e5898dbfa43958f61bcaed82f30 (patch) | |
tree | f0a858dbaaa4f6d96a2bc8283a6b62de3f01f16d /Alc/oss.c | |
parent | cbcaa54173bf6b14435adf3daf9feb2fa2e37d04 (diff) |
Remove left-over backend-specific period options
Diffstat (limited to 'Alc/oss.c')
-rw-r--r-- | Alc/oss.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -221,9 +221,7 @@ static ALCboolean oss_reset_playback(ALCdevice *device) AL_PRINT("Unknown format?! %x\n", device->Format); } - periods = GetConfigValueInt("oss", "periods", device->NumUpdates); - if((int)periods < 2) - periods = 4; + periods = device->NumUpdates; numChannels = aluChannelsFromFormat(device->Format); frameSize = numChannels * aluBytesFromFormat(device->Format); @@ -233,6 +231,8 @@ static ALCboolean oss_reset_playback(ALCdevice *device) /* according to the OSS spec, 16 bytes are the minimum */ if (log2FragmentSize < 4) log2FragmentSize = 4; + /* Subtract one period since the temp mixing buffer counts as one. Still + * need at least two on the card, though. */ if(periods > 2) periods--; numFragmentsLogSize = (periods << 16) | log2FragmentSize; |