From owner-freebsd-multimedia Thu Feb 19 14:32:17 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA05337 for freebsd-multimedia-outgoing; Thu, 19 Feb 1998 14:32:17 -0800 (PST) (envelope-from owner-freebsd-multimedia@FreeBSD.ORG) Received: from whqvax.picker.com (whqvax.picker.com [144.54.1.1]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id OAA05328 for ; Thu, 19 Feb 1998 14:32:14 -0800 (PST) (envelope-from rhh@ct.picker.com) Received: from ct.picker.com by whqvax.picker.com with SMTP; Thu, 19 Feb 1998 17:31:12 -0500 (EST) Received: from elmer.ct.picker.com by ct.picker.com (4.1/SMI-4.1) id AA17283; Thu, 19 Feb 98 17:31:10 EST Received: by elmer.ct.picker.com (SMI-8.6/SMI-SVR4) id RAA16045; Thu, 19 Feb 1998 17:30:28 -0500 Message-Id: <19980219173027.24022@ct.picker.com> Date: Thu, 19 Feb 1998 17:30:27 -0500 From: Randall Hopper To: Scott Michel Cc: freebsd-multimedia@FreeBSD.ORG Subject: Re: Just what is SNDCTL_DSP_SUBDIVIDE? References: <199802160608.WAA00315@mordred.cs.ucla.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.88 In-Reply-To: <199802160608.WAA00315@mordred.cs.ucla.edu>; from Scott Michel on Sun, Feb 15, 1998 at 10:08:03PM -0800 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Scott Michel: |Not being an up-to-speed geek on sound drivers, would someone tell me |just what SNDCTL_DSP_SUBDIVIDE is supposed to do? Hannu's old Voxware SDK doc has a decent description. I dropped a copy off at Amancio's site a while back (ftp://rah.star-gate.com/snd-sdk-doc-0.1.ps.gz). The ioctl(fd, SOUND_PCM_SUBDIVIDE, &div) is a new call which requests the driver to use smaller buffers. The value in the parameter (div) should be 1, 2 or 4. After this call the driver will compute the buffer size by dividing the default buffer size by the requested value. This makes the buffer up to 4 times shorter than the default. Randall To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message