Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Jan 2001 14:20:00 -0600
From:      Steve Price <sprice@hiwaay.net>
To:        Mike Smith <msmith@FreeBSD.ORG>
Cc:        Dan Nelson <dnelson@emsphone.com>, hackers@FreeBSD.ORG
Subject:   Re: synchronous IO
Message-ID:  <20010112142000.K36120@bonsai.knology.net>
In-Reply-To: <200101122018.f0CKIKQ00952@mass.osd.bsdi.com>; from msmith@FreeBSD.ORG on Fri, Jan 12, 2001 at 12:18:20PM -0800
References:  <20010112135605.J36120@bonsai.knology.net> <200101122018.f0CKIKQ00952@mass.osd.bsdi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010112142000.K36120>