From ad3961651220901a32c2068f074900e507c8d5db Mon Sep 17 00:00:00 2001 From: deraadt Date: Mon, 20 Nov 1995 09:36:56 +0000 Subject: [PATCH] provide floor for sampling rate; from khym@bga.com; netbsd pr#1770 --- sys/dev/audio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/dev/audio.c b/sys/dev/audio.c index 5fa7e0fdad5..1ba137da917 100644 --- a/sys/dev/audio.c +++ b/sys/dev/audio.c @@ -819,6 +819,8 @@ audio_calc_blksize(sc) bs = AU_RING_SIZE; bs &= ~1; /* make it even, in case of stereo */ + if (bs == 0) + bs = 2; return(bs); } -- 2.20.1