From 1178e900eb8e1f1dfb4757df19b55234d7d9e29e Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 6 Jan 2008 01:27:26 -0800 Subject: Don't allow 0 periods --- Alc/oss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3