Commit c6d39ca3 authored by jehan's avatar jehan

add audiot unit base iPhone sound integration

parent 6c8d5cea
......@@ -369,6 +369,22 @@ fi
AM_CONDITIONAL(BUILD_MACAQSND, test x$macaqsnd = xtrue)
AC_ARG_ENABLE(iounit,
[ --enable-iounit Turn on native apple iounit support (default=no)],
[case "${enableval}" in
yes) iounit=true ;;
no) iounit=false ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-iounit) ;;
esac],[iounit=false])
if test "$iounit" = "true"; then
AC_DEFINE(__MACIOUNIT_ENABLED__,1,[defined if native apple iounit support is available])
iounit_enabled=true
found_sound=yes
fi
AM_CONDITIONAL(BUILD_MACIOUNIT, test x$iounit_enabled = xtrue)
AC_ARG_ENABLE(jack,
[ --disable-jack Disable jack support],
[case "${enableval}" in
......
......@@ -97,7 +97,11 @@ typedef enum MSFilterId{
MS_ITC_SINK_ID,
MS_ITC_SOURCE_ID,
MS_EXT_DISPLAY_ID,
MS_H264_DEC_ID
MS_H264_DEC_ID,
MS_IOUNIT_READ_ID,
MS_IOUNIT_WRITE_ID,
MS_ANDROID_SOUND_READ_ID,
MS_ANDROID_SOUND_WRITE_ID
} MSFilterId;
......
......@@ -88,6 +88,10 @@ if BUILD_MACSND
libmediastreamer_la_SOURCES+=macsnd.c
endif
if BUILD_MACIOUNIT
libmediastreamer_la_SOURCES+=msiounit.c
endif
if BUILD_MACAQSND
libmediastreamer_la_SOURCES+=aqsnd.c
endif
......
......@@ -435,6 +435,10 @@ extern MSSndCardDesc aq_card_desc;
extern MSSndCardDesc pulse_card_desc;
#endif
#ifdef __MACIOUNIT_ENABLED__
extern MSSndCardDesc au_card_desc;
#endif
static MSSndCardDesc * ms_snd_card_descs[]={
#ifdef __ALSA_ENABLED__
&alsa_card_desc,
......@@ -463,7 +467,10 @@ static MSSndCardDesc * ms_snd_card_descs[]={
#ifdef __PULSEAUDIO_ENABLED__
&pulse_card_desc,
#endif
NULL
#ifdef __MACIOUNIT_ENABLED__
&au_card_desc,
#endif
NULL
};
#ifdef VIDEO_ENABLED
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment