> Heya, I was wondering if any of you guys had experience with
> oss pcm capture ?
>
> Thanks,
> Dennis
>
I did this, see here:
http://cvs.sourceforge.net/viewcvs.py/gmerlin/gmerlin/plugins/oss/i_oss.c=
?view=3Dmarkup
Some helper functions (used by playback and capture) are here:
http://cvs.sourceforge.net/viewcvs.py/gmerlin/gmerlin/plugins/oss/oss_com=
mon.c?view=3Dmarkup
In the configure.ac, you need something like:
have_oss=3Dfalse
AC_ARG_ENABLE(oss,
AC_HELP_STRING(--disable-oss, [Disable OSS (default:
autodetect)]),
[case "${enableval}" in
yes) test_oss=3Dtrue ;;
no) test_oss=3Dfalse ;;
esac],
test_oss=3Dtrue)
if test x$test_oss =3D xtrue; then
AC_CHECK_HEADERS(sys/soundcard.h soundcard.h, have_oss=3Dtrue)
fi
AM_CONDITIONAL(HAVE_OSS, test x$have_oss =3D xtrue)
Similar plugins exist for Alsa and esound.
Cheers
Burkhard
|