synchronous IO

2001-01-11 Thread Steve Price
What are the secrets to doing synchronous IO with FreeBSD? I have this application that I'm writing where I need to play a WAV file but I need to make sure all the bits are sent on there way before I move on. The WAV file is being played through a controller that I have to toggle some bit

Re: synchronous IO

2001-01-11 Thread Dan Nelson
In the last episode (Jan 11), Steve Price said: > What are the secrets to doing synchronous IO with FreeBSD? I have > this application that I'm writing where I need to play a WAV file but > I need to make sure all the bits are sent on there way before I move > on. The WAV fil

Re: synchronous IO

2001-01-12 Thread Steve Price
On Thu, Jan 11, 2001 at 09:44:49PM -0600, Dan Nelson wrote: # I don't think you really mean synchronous IO; All you need is some # buffering. If the toggling you're talking about is direct wave # generation (i.e. you have to do something for each byte in the sample), # your time re

Re: synchronous IO

2001-01-12 Thread Mike Smith
> Thanks for the info. I don't think I was very clear in my first > explanation. I have an RF transmitter that I control via a serial > port on a FreeBSD box. I also have a sound card in that same > computer connected to the transmitter. I'm sending commands to > the transmitter in a sequence

Re: synchronous IO

2001-01-12 Thread Steve Price
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 c