From owner-freebsd-hackers Fri Jan 12 12:20:24 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.hiwaay.net (fly.HiWAAY.net [208.147.154.56]) by hub.freebsd.org (Postfix) with ESMTP id 08F8B37B402; Fri, 12 Jan 2001 12:20:04 -0800 (PST) Received: from bonsai.knology.net (user-24-214-88-8.knology.net [24.214.88.8]) by mail.hiwaay.net (8.11.0/8.11.0) with ESMTP id f0CKK1o04058; Fri, 12 Jan 2001 14:20:01 -0600 (CST) Received: (from steve@localhost) by bonsai.knology.net (8.11.1/8.11.1) id f0CKK0S26468; Fri, 12 Jan 2001 14:20:00 -0600 (CST) (envelope-from steve) Date: Fri, 12 Jan 2001 14:20:00 -0600 From: Steve Price To: Mike Smith Cc: Dan Nelson , hackers@FreeBSD.ORG Subject: Re: synchronous IO Message-ID: <20010112142000.K36120@bonsai.knology.net> References: <20010112135605.J36120@bonsai.knology.net> <200101122018.f0CKIKQ00952@mass.osd.bsdi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200101122018.f0CKIKQ00952@mass.osd.bsdi.com>; from msmith@FreeBSD.ORG on Fri, Jan 12, 2001 at 12:18:20PM -0800 X-Operating-System: FreeBSD 4.2-STABLE i386 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Jan 12, 2001 at 12:18:20PM -0800, Mike Smith wrote: # # You can ensure the serial output is drained with tcdrain(). There's is # probably an interface for checking the status of the sound buffer. Yes, this appears to have done the trick. # Looking in sys/soundcard.h, I would suggest calling SNDCTL_DSP_GETOSPACE # while the card is idle to determine the total amount of output space, # then poll while you're waiting for the sample play to end until it # returns to the "empty" level. I'll give this one a shot shortly. Thanks Mike. :) -steve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message