Subject: Re: /dev/sound == LINUX /dev/dsp?
To: Richard Rauch <rauch@eecs.ukans.edu>
From: Lennart Augustsson <lennart@augustsson.net>
List: netbsd-help
Date: 06/27/1999 11:30:58
Richard Rauch wrote:

> The comments in plib for OpenBSD support _seem_ to indicate that
> /dev/audio is based on a Sun design.  Did NetBSD and OpenBSD independantly
> re-develop the code for /dev/audio, from a common parent?  Or did one
> borrow code directly from the other?  Or was /dev/audio an original NetBSD
> design, which predated the NetBSD/OpenBSD split (and therefore effectively
> native to both systems)---and therefore I misunderstood (or the comments
> were misleading) re.

A lot of the /dev/audio API predates the split.  And after the split OpenBSD has
been tracking the NetBSD development.  I don't think they have made any
incompatible changes to the API, but they might have some additional drivers.


>
> >Try 'man audio', that's the man page for /dev/sound as well.
>
> Ah, a missing man page link, then?

Indeed.


> >> So, should I be safe in pointing plib's sound to /dev/sound?  Are there
> >> any caveats or shortfalls that I should be aware of?  Where can I find man
> >> pages on ossaudio?  (The ossaudio man page itself is very brief.)
> >
> >If you want docs for OSS then try their web site, www.4front-tech.com.
>
> Partly; I was more concerned with whether there would be any problems,
> since OSS-support does not seem to be the ``normal'' sound support for
> NetBSD.

No, it's not the "normal" support, but it is a fairly good emulation of the
OSS API.  Most application will not notice the difference.


> On looking a little closer, I see that plib has already been ported to
> OpenBSD, and they appear to also use a /dev/audio.  I assume that the
> interface is the same,

You're assuming right.  Change those '#if defined(__OpenBSD__)' to
'#if defined(__OpenBSD__) || defined(__NetBSD__)'

    -- Lennart