Search
j0ke.net Open Build Service
>
Projects
>
server:telephony
>
openh323
> openh323-system-amrnb.diff
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File openh323-system-amrnb.diff of Package openh323 (Revision 5)
Currently displaying revision
5
,
show latest
--- plugins/audio/gsm-amr/Makefile.in +++ plugins/audio/gsm-amr/Makefile.in @@ -20,11 +20,7 @@ SONAME = gsmamrcodec -SRCS = amrcodec.c \ - interf_enc.c \ - interf_dec.c \ - sp_dec.c \ - sp_enc.c +SRCS = amrcodec.c OBJDIR = ./obj SRCDIR = ./src/c-code @@ -46,7 +42,7 @@ ifeq ($(H323_GSMAMR_NB_FLOAT),1) $(PLUGIN): $(OBJECTS) - $(CC) $(LDSO)$(SONAME) -o $@ $^ + $(CC) $(LDSO)$(SONAME) -lamrnb -o $@ $^ install: mkdir -p $(DESTDIR)$(LIBDIR)/pwlib/codecs/audio/ --- plugins/audio/gsm-amr/amrcodec.c +++ plugins/audio/gsm-amr/amrcodec.c @@ -14,8 +14,8 @@ #endif #include "opalplugin.h" -#include "src/interf_enc.h" -#include "src/interf_dec.h" +#include "amrnb/interf_enc.h" +#include "amrnb/interf_dec.h" PLUGIN_CODEC_IMPLEMENT("AMR") #include <stdio.h> --- plugins/configure.ac +++ plugins/configure.ac @@ -34,12 +34,12 @@ dnl look for amr-nb_float H323_GSMAMR_NB_FLOAT=0 -if test -r "./audio/gsm-amr/src/c-code/interf_dec.h" ; then +AC_CHECK_LIB([amrnb],[IF2Decoder_Interface_Decode],[ AC_MSG_NOTICE(Enabling GSM-AMR plugin) H323_GSMAMR_NB_FLOAT=1 -else +],[ AC_MSG_NOTICE(GSM-AMR plugin disabled (no 3GPP source)) -fi +]) AC_SUBST(H323_GSMAMR_NB_FLOAT, $H323_GSMAMR_NB_FLOAT)