Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
af6915a2
Commit
af6915a2
authored
16 years ago
by
Emmanuel Milou
Browse files
Options
Downloads
Patches
Plain Diff
Use speexdsp only if available 3
parent
7f27b180
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
configure.ac
+6
-5
6 additions, 5 deletions
configure.ac
src/audio/codecs/Makefile.am
+3
-3
3 additions, 3 deletions
src/audio/codecs/Makefile.am
src/audio/codecs/speexcodec.cpp
+3
-3
3 additions, 3 deletions
src/audio/codecs/speexcodec.cpp
with
12 additions
and
11 deletions
configure.ac
+
6
−
5
View file @
af6915a2
...
@@ -233,9 +233,10 @@ AS_IF([test "x$with_speex" != xno],
...
@@ -233,9 +233,10 @@ AS_IF([test "x$with_speex" != xno],
)
)
]
]
dnl More advanced check in case the libspeexdsp is not installed
dnl More advanced check in case the libspeexdsp is not installed
AC_
CHECK_LIB(speex,
speex_preprocess_run, HAVE_SPEEXDSP=
true
, HAVE_SPEEXDSP=
false
)
AC_
SEARCH_LIBS(
speex_preprocess_run,
speexdsp,
HAVE_SPEEXDSP=
"yes"
, HAVE_SPEEXDSP=
"no", []
)
if test $HAVE_SPEEXDSP = false; then
if test $HAVE_SPEEXDSP="no"; then
echo $HAVE_SPEEXDSP;
AC_MSG_WARN([The silence detection in speex could not have been enabled])
AC_MSG_WARN([The silence detection in speex could not have been enabled])
fi
fi
...
@@ -243,7 +244,7 @@ fi
...
@@ -243,7 +244,7 @@ fi
AC_DEFINE([HAVE_SPEEX], test "x$with_speex" = "xyes", [Define if you have libspeex])
AC_DEFINE([HAVE_SPEEX], test "x$with_speex" = "xyes", [Define if you have libspeex])
AM_CONDITIONAL(BUILD_SPEEX, test "x$with_speex" = "xyes" )
AM_CONDITIONAL(BUILD_SPEEX, test "x$with_speex" = "xyes" )
AM_CONDITIONAL(ENABLE_SPEEXDSP, $HAVE_SPEEXDSP)
AM_CONDITIONAL(ENABLE_SPEEXDSP,
test
$HAVE_SPEEXDSP
= yes
)
dnl Check for ilbc support
dnl Check for ilbc support
AC_ARG_WITH([ilbc],
AC_ARG_WITH([ilbc],
...
...
This diff is collapsed.
Click to expand it.
src/audio/codecs/Makefile.am
+
3
−
3
View file @
af6915a2
...
@@ -10,15 +10,15 @@ INSTALL_GSM_RULE = install-libcodec_gsm_so
...
@@ -10,15 +10,15 @@ INSTALL_GSM_RULE = install-libcodec_gsm_so
endif
endif
if
ENABLE_SPEEXDSP
if
ENABLE_SPEEXDSP
SPEEXDSP
_LIB
=
-lspeexdsp
SPEEXDSP
=
-DHAVE_SPEEXDSP_LIB
endif
endif
if
BUILD_SPEEX
if
BUILD_SPEEX
SPEEX_LIB
=
libcodec_speex.so
SPEEX_LIB
=
libcodec_speex.so
libcodec_speex_so_SOURCES
=
speexcodec.cpp
libcodec_speex_so_SOURCES
=
speexcodec.cpp
libcodec_speex_so_CFLAGS
=
-fPIC
-g
-Wall
libcodec_speex_so_CFLAGS
=
-fPIC
-g
-Wall
libcodec_speex_so_CXXFLAGS
=
-fPIC
-g
-Wall
libcodec_speex_so_CXXFLAGS
=
-fPIC
-g
-Wall
$(
SPEEXDSP
)
libcodec_speex_so_LDFLAGS
=
--shared
-lc
-lspeex
$(
SPEEX
DSP_LIB
)
-lm
libcodec_speex_so_LDFLAGS
=
--shared
-lc
-lspeex
$(
SPEEX
_NIMP
)
INSTALL_SPEEX_RULE
=
install-libcodec_speex_so
INSTALL_SPEEX_RULE
=
install-libcodec_speex_so
endif
endif
...
...
This diff is collapsed.
Click to expand it.
src/audio/codecs/speexcodec.cpp
+
3
−
3
View file @
af6915a2
...
@@ -59,7 +59,7 @@ class Speex : public AudioCodec{
...
@@ -59,7 +59,7 @@ class Speex : public AudioCodec{
speex_bits_init
(
&
_speex_enc_bits
);
speex_bits_init
(
&
_speex_enc_bits
);
_speex_enc_state
=
speex_encoder_init
(
_speexModePtr
);
_speex_enc_state
=
speex_encoder_init
(
_speexModePtr
);
#if
ENABL
E_SPEEXDSP
#if
def HAV
E_SPEEXDSP
_LIB
int
enable
=
1
;
int
enable
=
1
;
int
quality
=
10
;
int
quality
=
10
;
...
@@ -114,7 +114,7 @@ class Speex : public AudioCodec{
...
@@ -114,7 +114,7 @@ class Speex : public AudioCodec{
{
{
speex_bits_reset
(
&
_speex_enc_bits
);
speex_bits_reset
(
&
_speex_enc_bits
);
#if
ENABL
E_SPEEXDSP
#if
def HAV
E_SPEEXDSP
_LIB
speex_encoder_ctl
(
_speex_enc_state
,
SPEEX_SET_SAMPLING_RATE
,
&
_clockRate
);
speex_encoder_ctl
(
_speex_enc_state
,
SPEEX_SET_SAMPLING_RATE
,
&
_clockRate
);
speex_preprocess_run
(
_preprocess_state
,
src
);
speex_preprocess_run
(
_preprocess_state
,
src
);
#endif
#endif
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment