summaryrefslogtreecommitdiffstats
path: root/Alc/oss.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2008-01-06 01:27:26 -0800
committerChris Robinson <[email protected]>2008-01-06 01:27:26 -0800
commit1178e900eb8e1f1dfb4757df19b55234d7d9e29e (patch)
treeb4de95d4b2b156ce5f78732d86197cc2c7776350 /Alc/oss.c
parent298f6f440ae87373d92b2e392f0cc7780453d144 (diff)
Don't allow 0 periods
Diffstat (limited to 'Alc/oss.c')
-rw-r--r--Alc/oss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/oss.c b/Alc/oss.c
index 483f2247..26be11d7 100644
--- a/Alc/oss.c
+++ b/Alc/oss.c
@@ -194,7 +194,7 @@ static ALCboolean oss_open_playback(ALCdevice *device, const ALCchar *deviceName
}
periods = GetConfigValueInt("oss", "periods", 4);
- if((int)periods < 0)
+ if((int)periods <= 0)
periods = 4;
numChannels = device->Channels;
ossSpeed = device->Frequency;