From owner-freebsd-current Mon Jan 17 9:29: 2 2000 Delivered-To: freebsd-current@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id A9B3214BFF for ; Mon, 17 Jan 2000 09:28:52 -0800 (PST) (envelope-from des@flood.ping.uio.no) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id SAA11925; Mon, 17 Jan 2000 18:28:34 +0100 (CET) (envelope-from des@flood.ping.uio.no) To: CGiordano@ids.net Cc: Reinier Bezuidenhout , freebsd-current@FreeBSD.ORG Subject: Re: newpcm References: <200001110908.LAA06044@oskar.dev.nanoteq.co.za> <387C3130.4930E69B@ids.net> From: Dag-Erling Smorgrav Date: 17 Jan 2000 18:28:33 +0100 In-Reply-To: Chris Giordano's message of "Wed, 12 Jan 2000 02:45:52 -0500" Message-ID: Lines: 29 User-Agent: Gnus/5.0802 (Gnus v5.8.2) Emacs/20.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Chris Giordano writes: > Luigi Rizzo explained this behavior in the old pcm driver > about a year or so ago. I believe it was due to some applications > setting a fixed buffering size with the SETFRAGMENT(?) ioctl, which > was not implemented in old pcm and then mistakenly writing smaller > than intended sound samples because they assumed a different buffer > size. I don't know if this applies to newpcm, but it sounds like > the same symptoms. > > Check the -current mailing list archives for pcm0 and xgalaga. -multimedia, actually: I (and many others, I'm sure) would be very grateful if somebody would implement Luigi's first suggestion, to wit: > 1) complete the SETFRAGMENT (or whatever it is called) implementation > (not hard, you just need to reduce the blocksize in the dma buffer > descriptor and reset the dma channel; The ioctl in question is SNDCTL_DSP_SETFRAGMENT. Its semantics are described in the "Making audio complicated" section of the OSS Programmer's Guide: . DES -- Dag-Erling Smorgrav - des@flood.ping.uio.no To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message