Merge pull request #1427 from jsorg71/rdpsnd_audin_off

default rdpsnd audin off, can enable with --enable-rdpsndaudin
This commit is contained in:
metalefty 2019-10-24 13:02:42 +09:00 committed by GitHub
commit 1897f8159f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;
}