Subject: /dev/audio
To: None <current-users@sun-lamp.cs.berkeley.edu>
From: Brian D. Carlstrom <bdc@ai.mit.edu>
List: current-users
Date: 02/11/1994 03:45:07
i've been trying to play .au files through /dev/audio.  i've had some
sucess just using cat, but after a few times (well often just after one)
it hangs. after reading some of the flamage in sb.c, i tried writing my
own program to send a file to /dev/audio. it seems to hang after 20
bytes. then i switched to use non-blocking io. i've also started
flushing after writing every byte, and it doesnt hang, but nothing comes
out of the speaker...except maybe a click when it turns the speaker on

any ideas or pointers to some example code for dealing with this

-bri


------------------------------------------------------------------------------