Subject: Re: eap(4) and ess(4) and mixer volume values
To: <>
From: Ignatios Souvatzis <is@beverly.kleinbus.org>
List: tech-kern
Date: 08/16/2000 07:49:53
On Tue, Aug 15, 2000 at 06:42:43PM -0400, Lennart Augustsson wrote:
> When doing OSS emulation there is addition trouble, since OSS uses a range
> of 0-99 for its controls (as opposed to NetBSD's 0-255).  So now you can
> lose bits in that conversion too, and that might be bad.

eek.

In this case you probably need something like this?

	ossval = ((netbsd << 1) + 1) * 99 / 510;
	netbsd = ((ossval << 1) + 1) * 255 / 198;

Regards,
	-is