DESCR: audiotest is a simple program to help discover and pinpoint problems that may exist in the audio(4) implementation. It does basic read(2) and write(2) operations, and can set the audio device to full-duplex mode and do both read(2) and write(2) operations. audiotest can open the audio device for non-blocking I/O, and optionally use select(2) or poll(2).
I know some of you here have dealt with issues with audio(4). I wrote this so there could be a simple program to test usage found in some real-world software that does not work (at least not without hacks) on OpenBSD. This program can be used to demonstrate PR 3813/kernel, for example. Of course, the use of this program to display problems with audio(4) assumes there aren't problems with the program itself. I'm pretty sure about the code, but it would be nice to get feedback, especially if something looks fishy. -- [EMAIL PROTECTED] SDF Public Access UNIX System - http://sdf.lonestar.org