Re: [AD] OSS driver

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Michael Bukin <M.A.Bukin@xxxxxxxxxx> writes:

> This patch adds support for Open Sound System audio driver.

I forgot to mention that most of original OSS driver in XwinAllegro
was written by Joshua Heyer <joshua_heyer@xxxxxxxxxx>, so if this
driver will be included with Allegro, then he should be credited for
it.

In src/uoss.c there are two commented uconvert_toascii(filename, s).
Perhaps, they should be uncommented and one line below it is necessary
to replace open(filename...) with open(s...).  It was incorrect
attempt to debug problem which turned out to be a typo.  There might
be other problems with handling Unicode strings.

Gregorz Adam Hankiewicz reported that soundcard.h should be included
as <linux/soundcard.h>.  Autodetection for this case can be added by
modifying aclocal.m4 (AC_CHECK_HEADERS(linux/soundcard.h,...)) and
src/uoss.c (#ifdef HAVE_LINUX_SOUNDCARD_H...).

<sys/soundcard.h> for RedHat-4.2
<machine/soundcard.h> for FreeBSD
<linux/soundcard.h> for some other linux
<soundcard.h> for completeness :)
Maybe some platform has it in different place, then it can be added to
the configure script too.

-- 
Michael Bukin



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/