Skip to content

Commit

Permalink
chansrv: added mp3 compression from Speidy
Browse files Browse the repository at this point in the history
  • Loading branch information
jsorg71 committed Jul 14, 2016
1 parent eed0227 commit 9ccbfb6
Show file tree
Hide file tree
Showing 4 changed files with 668 additions and 34 deletions.
11 changes: 11 additions & 0 deletions configure.ac
Expand Up @@ -107,6 +107,10 @@ AC_ARG_ENABLE(opus, AS_HELP_STRING([--enable-opus],
[Build opus(audio codec) (default: no)]),
[], [enable_opus=no])
AM_CONDITIONAL(XRDP_OPUS, [test x$enable_opus = xyes])
AC_ARG_ENABLE(mp3lame, AS_HELP_STRING([--enable-mp3lame],
[Build lame mp3(audio codec) (default: no)]),
[], [enable_mp3lame=no])
AM_CONDITIONAL(XRDP_MP3LAME, [test x$enable_mp3lame = xyes])

# checking for openssl
AC_CHECK_HEADER([openssl/rc4.h], [],
Expand Down Expand Up @@ -179,6 +183,13 @@ then
[AC_MSG_ERROR([please install libopus-dev or opus-devel])])
fi

# checking for lame mp3
if test "x$enable_mp3lame" = "xyes"
then
AC_CHECK_HEADER([lame/lame.h], [],
[AC_MSG_ERROR([please install libmp3lame-dev or lamemp3-devel])])
fi

# checking for TurboJPEG
if test "x$enable_tjpeg" = "xyes"
then
Expand Down
5 changes: 5 additions & 0 deletions sesman/chansrv/Makefile.am
Expand Up @@ -13,6 +13,11 @@ EXTRA_DEFINES += -DXRDP_OPUS
EXTRA_LIBS += -lopus
endif

if XRDP_MP3LAME
EXTRA_DEFINES += -DXRDP_MP3LAME
EXTRA_LIBS += -lmp3lame
endif

AM_CPPFLAGS = \
-DXRDP_CFG_PATH=\"${sysconfdir}/xrdp\" \
-DXRDP_SBIN_PATH=\"${sbindir}\" \
Expand Down

0 comments on commit 9ccbfb6

Please sign in to comment.