El 24/09/15 a les 20:21, Antti Kantee ha escrit:
On 24/09/15 18:15, Robert Millan wrote:
Also, if you want to use just ossaudio on Hurd, wouldn't it be better
to use the in-(rump-)kernel ossaudio compat translator
(sys/compat/ossaudio)?

There's a big problem with using sys/compat/ossaudio on non-NetBSD: since
it is built in the kernel tree, it includes the NetBSD version of
<sys/soundcard.h>
and also other headers like <sys/audioio.h> and <sys/ioccom.h>.

No, it does *not* include NetBSD <sys/soundcard.h>.  The entire point of the 
module is to not use it(!)

Sorry I used the wrong wording, what I meant to say is that it expects ioctl 
parameters
using a different ABI than the one provided by system soundcard.h.

My understanding is that using compat/ossaudio to support userland OSS 
applications
on non-NetBSD systems would require writing an intermediate layer to do the ABI
translation. And performing a few minor adjustments to libossaudio is much 
easier
than writing an ABI conversion layer :-)

--
Robert Millan

Reply via email to