diff options
author | Chris Robinson <[email protected]> | 2008-01-06 01:27:26 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2008-01-06 01:27:26 -0800 |
commit | 1178e900eb8e1f1dfb4757df19b55234d7d9e29e (patch) | |
tree | b4de95d4b2b156ce5f78732d86197cc2c7776350 /Alc | |
parent | 298f6f440ae87373d92b2e392f0cc7780453d144 (diff) |
Don't allow 0 periods
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/oss.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |