aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/oss.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-09-16 23:29:32 -0700
committerChris Robinson <[email protected]>2009-09-16 23:29:32 -0700
commitfb97ca6022308e5898dbfa43958f61bcaed82f30 (patch)
treef0a858dbaaa4f6d96a2bc8283a6b62de3f01f16d /Alc/oss.c
parentcbcaa54173bf6b14435adf3daf9feb2fa2e37d04 (diff)
Remove left-over backend-specific period options
Diffstat (limited to 'Alc/oss.c')
-rw-r--r--Alc/oss.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/oss.c b/Alc/oss.c
index 7c7fe73f..6cf4c495 100644
--- a/Alc/oss.c
+++ b/Alc/oss.c
@@ -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;