On Sat, Dec 06, 2008 at 09:50:50PM +0000, Jacob Meuser wrote:
> On Sat, Dec 06, 2008 at 10:44:39PM +0200, Pekka Niiranen wrote:
> 
> > When I play the created file "sound440.au" in Windows I corretly
> > get 2 seconds of 440 Hz sound. However, when I play it in
> > OpenBSD v4.4 with the following command:
> >
> >     aucat -i sound440.au
> >     /dev/audio: playing s16le,0:1,48000Hz
> >     sound440.au: s16le,0:1,44100Hz -> s16le,0:1,48000Hz
> >     sound440.au: reading s16le,0:1,44100Hz
> >     filling buffers...
> >     starting device ...
> >     draining buffers...

actually, there is a problem your usage of aucat.  .au files are only
supported in "legacy mode", and they will always be interpreted
as mono 8kHz ulaw.  if you use -i, .au files are treated as raw
files with the default parameters.

> > gives even shorter sound. What am I missing?

this is all explained in aucat(1), of course.

and cat foo > /dev/audio uses the default settings as well.

this is also explained in audio(4).

and the FAQ is pretty clear about this as well.

> 
> > auich0: DMA bug workaround enabled
> 
> maybe it has something to do with that.  the driver isn't actually doing
> anything special for that chip...

let me know if the device works.  I will remove the message so I
don't jump to conclusions in the future ...

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

Reply via email to