Re: NEW: audiotest-1.0 - tests audio(4) operations

2007-06-15 Thread Martin Reindl
Jacob Meuser [EMAIL PROTECTED] wrote:

 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.
 

Why not put it in src/regress?



Re: NEW: audiotest-1.0 - tests audio(4) operations

2007-06-15 Thread Jacob Meuser
On Fri, Jun 15, 2007 at 08:30:40PM +0200, Martin Reindl wrote:
 Jacob Meuser [EMAIL PROTECTED] wrote:
 
  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.
  
 
 Why not put it in src/regress?

I'm not against that.  Just trying to get some eyes on it for now,
and I know some porters have had to deal with audio(4) problems,
so I figured they may be interested in such a program.

-- 
[EMAIL PROTECTED]
SDF Public Access UNIX System - http://sdf.lonestar.org



Re: NEW: audiotest-1.0 - tests audio(4) operations

2007-06-15 Thread Jacob Meuser
On Fri, Jun 15, 2007 at 07:49:44AM +, Jacob Meuser wrote:
 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).

with attachment this time.

sorry folks.

-- 
[EMAIL PROTECTED]
SDF Public Access UNIX System - http://sdf.lonestar.org


audiotest-1.0-port.tgz
Description: application/tar-gz


Re: NEW: audiotest-1.0 - tests audio(4) operations

2007-06-15 Thread Jacob Meuser
On Fri, Jun 15, 2007 at 06:24:40PM +, Jacob Meuser wrote:
 On Fri, Jun 15, 2007 at 07:49:44AM +, Jacob Meuser wrote:
  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).
 
 with attachment this time.
 
 sorry folks.

here's something similar, with patches to fix observed problems

http://marc.info/?l=openbsd-techm=115982418728996w=2

-- 
[EMAIL PROTECTED]
SDF Public Access UNIX System - http://sdf.lonestar.org