default rdpsnd audin off, can enable with --enable-rdpsndaudin

This commit is contained in:
Jay Sorg 2019-10-22 22:48:15 -07:00
parent 04f885189a
commit d7b1f12d9b
3 changed files with 15 additions and 0 deletions

View File

@ -150,6 +150,11 @@ AC_ARG_ENABLE(rfxcodec, AS_HELP_STRING([--disable-rfxcodec],
[], [enable_rfxcodec=yes])
AM_CONDITIONAL(XRDP_RFXCODEC, [test x$enable_rfxcodec = xyes])
AC_ARG_ENABLE(rdpsndaudin, AS_HELP_STRING([--enable-rdpsndaudin],
[Use rdpsnd audio in (default: no)]),
[], [enable_rdpsndaudin=no])
AM_CONDITIONAL(XRDP_RDPSNDAUDIN, [test x$enable_rdpsndaudin = xyes])
# Don't fail without working nasm if rfxcodec is not enabled
if test "x$enable_rfxcodec" != xyes; then
with_simd=no
@ -390,6 +395,7 @@ echo " vsock $enable_vsock"
echo " pam $enable_pam"
echo " kerberos $enable_kerberos"
echo " debug $enable_xrdpdebug"
echo " rdpsndaudin $enable_rdpsndaudin"
echo ""
echo " strict_locations $enable_strict_locations"
echo " prefix $prefix"

View File

@ -37,6 +37,10 @@ AM_CPPFLAGS += -DXRDP_MP3LAME
CHANSRV_EXTRA_LIBS += -lmp3lame
endif
if XRDP_RDPSNDAUDIN
AM_CPPFLAGS += -DXRDP_RDPSNDAUDIN
endif
AM_CFLAGS = $(X_CFLAGS)
sbin_PROGRAMS = \

View File

@ -1438,6 +1438,7 @@ sound_check_wait_objs(void)
static int
sound_send_server_input_formats(void)
{
#if defined(XRDP_RDPSNDAUDIN)
struct stream *s;
int bytes;
int index;
@ -1492,6 +1493,10 @@ sound_send_server_input_formats(void)
bytes = (int)(s->end - s->data);
send_channel_data(g_rdpsnd_chan_id, s->data, bytes);
free_stream(s);
#else
/* avoid warning */
(void)g_wave_inp_formats;
#endif
return 0;
}