Skip to content

Commit 6053cf5

Browse files
committed
added --enable-audio-callback to configure
1 parent 64f1458 commit 6053cf5

File tree

4 files changed

+50
-14
lines changed

4 files changed

+50
-14
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@ DerivedData/
2222
# Visual Studio 2015 cache/options directory
2323
.vs/
2424

25-
xcuserdata/
25+
xcuserdata/
26+
autom4te.cache/

Makefile.am

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,14 @@ webrtc_dsp/webrtc/modules/audio_processing/aec/aec_core_sse2.cc \
161161
webrtc_dsp/webrtc/modules/audio_processing/utility/ooura_fft_sse2.cc
162162
endif
163163

164+
if ENABLE_AUDIO_CALLBACK
165+
CFLAGS += -DTGVOIP_USE_CALLBACK_AUDIO_IO
166+
SRC += \
167+
audio/AudioIOCallback.cpp
168+
TGVOIP_HDRS += \
169+
audio/AudioIOCallback.h
170+
endif
171+
164172
if TARGET_CPU_ARM
165173
SRC += \
166174
webrtc_dsp/webrtc/common_audio/signal_processing/complex_bit_reverse_arm.S \

configure

Lines changed: 35 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /bin/sh
22
# Guess values for system-dependent variables and create Makefiles.
3-
# Generated by GNU Autoconf 2.69 for libtgvoip 2.2.
3+
# Generated by GNU Autoconf 2.69 for libtgvoip 2.2.4.
44
#
55
# Report bugs to <https://github.com/grishka/libtgvoip/issues>.
66
#
@@ -590,8 +590,8 @@ MAKEFLAGS=
590590
# Identity of this package.
591591
PACKAGE_NAME='libtgvoip'
592592
PACKAGE_TARNAME='libtgvoip'
593-
PACKAGE_VERSION='2.2'
594-
PACKAGE_STRING='libtgvoip 2.2'
593+
PACKAGE_VERSION='2.2.4'
594+
PACKAGE_STRING='libtgvoip 2.2.4'
595595
PACKAGE_BUGREPORT='https://github.com/grishka/libtgvoip/issues'
596596
PACKAGE_URL=''
597597

@@ -643,6 +643,8 @@ WITH_ALSA_FALSE
643643
WITH_ALSA_TRUE
644644
WITH_PULSE_FALSE
645645
WITH_PULSE_TRUE
646+
ENABLE_AUDIO_CALLBACK_FALSE
647+
ENABLE_AUDIO_CALLBACK_TRUE
646648
TARGET_OS_OSX_FALSE
647649
TARGET_OS_OSX_TRUE
648650
TARGET_CPU_ARMV7_FALSE
@@ -795,6 +797,7 @@ enable_dependency_tracking
795797
with_gnu_ld
796798
with_sysroot
797799
enable_libtool_lock
800+
enable_audio_callback
798801
with_pulse
799802
with_alsa
800803
enable_dsp
@@ -1357,7 +1360,7 @@ if test "$ac_init_help" = "long"; then
13571360
# Omit some internal or obsolete options to make the list less imposing.
13581361
# This message is too long to be a string in the A/UX 3.1 sh.
13591362
cat <<_ACEOF
1360-
\`configure' configures libtgvoip 2.2 to adapt to many kinds of systems.
1363+
\`configure' configures libtgvoip 2.2.4 to adapt to many kinds of systems.
13611364

13621365
Usage: $0 [OPTION]... [VAR=VALUE]...
13631366

@@ -1427,7 +1430,7 @@ fi
14271430

14281431
if test -n "$ac_init_help"; then
14291432
case $ac_init_help in
1430-
short | recursive ) echo "Configuration of libtgvoip 2.2:";;
1433+
short | recursive ) echo "Configuration of libtgvoip 2.2.4:";;
14311434
esac
14321435
cat <<\_ACEOF
14331436

@@ -1446,6 +1449,7 @@ Optional Features:
14461449
--disable-dependency-tracking
14471450
speeds up one-time build
14481451
--disable-libtool-lock avoid locking (might break parallel builds)
1452+
--enable-audio-callback enable callback-based audio I/O
14491453
--disable-dsp disable signal processing (echo cancellation, noise
14501454
suppression, and automatic gain control)
14511455

@@ -1548,7 +1552,7 @@ fi
15481552
test -n "$ac_init_help" && exit $ac_status
15491553
if $ac_init_version; then
15501554
cat <<\_ACEOF
1551-
libtgvoip configure 2.2
1555+
libtgvoip configure 2.2.4
15521556
generated by GNU Autoconf 2.69
15531557

15541558
Copyright (C) 2012 Free Software Foundation, Inc.
@@ -2260,7 +2264,7 @@ cat >config.log <<_ACEOF
22602264
This file contains any messages produced by compilers while
22612265
running configure, to aid debugging if configure makes a mistake.
22622266

2263-
It was created by libtgvoip $as_me 2.2, which was
2267+
It was created by libtgvoip $as_me 2.2.4, which was
22642268
generated by GNU Autoconf 2.69. Invocation command line was
22652269

22662270
$ $0 $@
@@ -3126,7 +3130,7 @@ fi
31263130

31273131
# Define the identity of the package.
31283132
PACKAGE='libtgvoip'
3129-
VERSION='2.2'
3133+
VERSION='2.2.4'
31303134

31313135

31323136
cat >>confdefs.h <<_ACEOF
@@ -17648,7 +17652,23 @@ else
1764817652
fi
1764917653

1765017654

17651-
if test "x$os_osx" != xyes; then :
17655+
# Check whether --enable-audio-callback was given.
17656+
if test "${enable_audio_callback+set}" = set; then :
17657+
enableval=$enable_audio_callback;
17658+
else
17659+
enable_audio_callback=yes
17660+
fi
17661+
17662+
if test "x$enable_audio_callback" == xyes; then
17663+
ENABLE_AUDIO_CALLBACK_TRUE=
17664+
ENABLE_AUDIO_CALLBACK_FALSE='#'
17665+
else
17666+
ENABLE_AUDIO_CALLBACK_TRUE='#'
17667+
ENABLE_AUDIO_CALLBACK_FALSE=
17668+
fi
17669+
17670+
17671+
if test "x$os_osx" != xyes && test "x$enable_audio_callback" != xyes; then :
1765217672
# Linux
1765317673
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
1765417674
$as_echo_n "checking for dlopen in -ldl... " >&6; }
@@ -18700,6 +18720,10 @@ if test -z "${TARGET_OS_OSX_TRUE}" && test -z "${TARGET_OS_OSX_FALSE}"; then
1870018720
as_fn_error $? "conditional \"TARGET_OS_OSX\" was never defined.
1870118721
Usually this means the macro was only invoked conditionally." "$LINENO" 5
1870218722
fi
18723+
if test -z "${ENABLE_AUDIO_CALLBACK_TRUE}" && test -z "${ENABLE_AUDIO_CALLBACK_FALSE}"; then
18724+
as_fn_error $? "conditional \"ENABLE_AUDIO_CALLBACK\" was never defined.
18725+
Usually this means the macro was only invoked conditionally." "$LINENO" 5
18726+
fi
1870318727
if test -z "${WITH_PULSE_TRUE}" && test -z "${WITH_PULSE_FALSE}"; then
1870418728
as_fn_error $? "conditional \"WITH_PULSE\" was never defined.
1870518729
Usually this means the macro was only invoked conditionally." "$LINENO" 5
@@ -19109,7 +19133,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1910919133
# report actual input values of CONFIG_FILES etc. instead of their
1911019134
# values after options handling.
1911119135
ac_log="
19112-
This file was extended by libtgvoip $as_me 2.2, which was
19136+
This file was extended by libtgvoip $as_me 2.2.4, which was
1911319137
generated by GNU Autoconf 2.69. Invocation command line was
1911419138

1911519139
CONFIG_FILES = $CONFIG_FILES
@@ -19175,7 +19199,7 @@ _ACEOF
1917519199
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1917619200
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1917719201
ac_cs_version="\\
19178-
libtgvoip config.status 2.2
19202+
libtgvoip config.status 2.2.4
1917919203
configured by $0, generated by GNU Autoconf 2.69,
1918019204
with options \\"\$ac_cs_config\\"
1918119205

configure.ac

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Process this file with autoconf to produce a configure script.
33

44
AC_PREREQ([2.69])
5-
AC_INIT([libtgvoip], [2.2], [https://github.com/grishka/libtgvoip/issues])
5+
AC_INIT([libtgvoip], [2.2.4], [https://github.com/grishka/libtgvoip/issues])
66
AC_CONFIG_SRCDIR([config.h.in])
77
AC_CONFIG_HEADERS([config.h])
88
AM_INIT_AUTOMAKE([subdir-objects])
@@ -44,7 +44,10 @@ AS_CASE([$host_os],
4444
)
4545
AM_CONDITIONAL(TARGET_OS_OSX, test "x$os_osx" == xyes)
4646

47-
AS_IF([test "x$os_osx" != xyes], [ # Linux
47+
AC_ARG_ENABLE([audio-callback], [AS_HELP_STRING([--enable-audio-callback], [enable callback-based audio I/O])], [], [enable_audio_callback=yes])
48+
AM_CONDITIONAL(ENABLE_AUDIO_CALLBACK, test "x$enable_audio_callback" == xyes)
49+
50+
AS_IF([test "x$os_osx" != xyes && test "x$enable_audio_callback" != xyes], [ # Linux
4851
AC_CHECK_LIB([dl], [dlopen])
4952
5053
AC_ARG_WITH([pulse], [AS_HELP_STRING([--without-pulse], [disable PulseAudio support])], [], [with_pulse=yes])

0 commit comments

Comments
 (0)