Subject: Re: PCM8 vs. PCM16/LINEAR?
To: None <tech-kern@NetBSD.ORG>
From: Mike Long <email@example.com>
Date: 08/03/1995 10:57:36
>Date: Wed, 2 Aug 1995 23:35:24 -0400
>From: John Kohl <firstname.lastname@example.org>
>>>>>> "Mike" == Mike Long <email@example.com> writes:
>Mike> 3) I also took the opportunity to get rid of the name member of struct
>Mike> audio_encoding, because I strongly dislike the idea of passing
>Mike> strings back and forth between the kernel and userland. Userland
>Mike> code can generate the name itself if necessary.
>I find it quite handy in my mixer app to just query the kernel for the
>names of what encodings are available. That way I can just suck the
>strings right out for the menu, and not worry about the whole
>translation-to-names quagmire (keeping up with new encodings and
>recompiling new tables, etc etc.)
The list of encodings should rarely change. With that in mind, do you
really think that the convenience is worth the kernel bloat? Passing
strings is a bad habit to get into.
Mike Long <firstname.lastname@example.org> http://www.shore.net/~mikel
VLSI Design Engineer finger email@example.com for PGP public key
Analog Devices, CPD Division CCBF225E7D3F7ECB2C8F7ABB15D9BE7B
Norwood, MA 02062 USA assert(*this!=opinionof(Analog));