[asterisk-commits] russell: trunk r95501 - in /trunk: ./ codecs/ main/ main/libresample/ main/li...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Dec 31 15:22:31 CST 2007
Author: russell
Date: Mon Dec 31 15:22:31 2007
New Revision: 95501
URL: http://svn.digium.com/view/asterisk?view=rev&rev=95501
Log:
Merge changes from team/russell/codec_resample
This commit imports libresample for use in Asterisk. It also adds a new codec
module, codec_resample. This module uses libresample to re-sample signed linear
audio between 8 kHz and 16 kHz.
It also provides an alternative for converting between 16 kHz G.722 and 8 kHz
signed linear when using G.722, which will likely be useful as some people have
complained about volume issues when the current codec_g722 converts to 8 kHz
signed linear. But, to test this, you will have to disable the g722-to-slin and
g722-to-slin16 translators in codec_g722.c.
Added:
trunk/codecs/codec_resample.c
- copied unchanged from r95500, team/russell/codec_resample/codecs/codec_resample.c
trunk/codecs/slin_resample_ex.h
- copied unchanged from r95500, team/russell/codec_resample/codecs/slin_resample_ex.h
trunk/main/libresample/ (props changed)
- copied from r95500, team/russell/codec_resample/main/libresample/
trunk/main/libresample/LICENSE.txt
- copied unchanged from r95500, team/russell/codec_resample/main/libresample/LICENSE.txt
trunk/main/libresample/Makefile.asterisk
- copied unchanged from r95500, team/russell/codec_resample/main/libresample/Makefile.asterisk
trunk/main/libresample/Makefile.in
- copied unchanged from r95500, team/russell/codec_resample/main/libresample/Makefile.in
trunk/main/libresample/README.txt
- copied unchanged from r95500, team/russell/codec_resample/main/libresample/README.txt
trunk/main/libresample/config.guess
- copied unchanged from r95500, team/russell/codec_resample/main/libresample/config.guess
trunk/main/libresample/config.sub
- copied unchanged from r95500, team/russell/codec_resample/main/libresample/config.sub
trunk/main/libresample/configure
- copied unchanged from r95500, team/russell/codec_resample/main/libresample/configure
trunk/main/libresample/configure.in
- copied unchanged from r95500, team/russell/codec_resample/main/libresample/configure.in
trunk/main/libresample/include/
- copied from r95500, team/russell/codec_resample/main/libresample/include/
trunk/main/libresample/include/libresample.h
- copied unchanged from r95500, team/russell/codec_resample/main/libresample/include/libresample.h
trunk/main/libresample/install-sh
- copied unchanged from r95500, team/russell/codec_resample/main/libresample/install-sh
trunk/main/libresample/src/
- copied from r95500, team/russell/codec_resample/main/libresample/src/
trunk/main/libresample/src/configtemplate.h
- copied unchanged from r95500, team/russell/codec_resample/main/libresample/src/configtemplate.h
trunk/main/libresample/src/filterkit.c
- copied unchanged from r95500, team/russell/codec_resample/main/libresample/src/filterkit.c
trunk/main/libresample/src/filterkit.h
- copied unchanged from r95500, team/russell/codec_resample/main/libresample/src/filterkit.h
trunk/main/libresample/src/resample.c
- copied unchanged from r95500, team/russell/codec_resample/main/libresample/src/resample.c
trunk/main/libresample/src/resample_defs.h
- copied unchanged from r95500, team/russell/codec_resample/main/libresample/src/resample_defs.h
trunk/main/libresample/src/resamplesubs.c
- copied unchanged from r95500, team/russell/codec_resample/main/libresample/src/resamplesubs.c
trunk/main/libresample/tests/
- copied from r95500, team/russell/codec_resample/main/libresample/tests/
trunk/main/libresample/tests/compareresample.c
- copied unchanged from r95500, team/russell/codec_resample/main/libresample/tests/compareresample.c
trunk/main/libresample/tests/resample-sndfile.c
- copied unchanged from r95500, team/russell/codec_resample/main/libresample/tests/resample-sndfile.c
trunk/main/libresample/tests/testresample.c
- copied unchanged from r95500, team/russell/codec_resample/main/libresample/tests/testresample.c
trunk/main/libresample/win/
- copied from r95500, team/russell/codec_resample/main/libresample/win/
trunk/main/libresample/win/libresample.dsp
- copied unchanged from r95500, team/russell/codec_resample/main/libresample/win/libresample.dsp
trunk/main/libresample/win/libresample.vcproj
- copied unchanged from r95500, team/russell/codec_resample/main/libresample/win/libresample.vcproj
Modified:
trunk/CHANGES
trunk/codecs/Makefile
trunk/main/Makefile
Modified: trunk/CHANGES
URL: http://svn.digium.com/view/asterisk/trunk/CHANGES?view=diff&rev=95501&r1=95500&r2=95501
==============================================================================
--- trunk/CHANGES (original)
+++ trunk/CHANGES Mon Dec 31 15:22:31 2007
@@ -429,3 +429,6 @@
* A new option when starting a remote asterisk (rasterisk, asterisk -r) for
specifying which socket to use to connect to the running Asterisk daemon
(-s)
+ * Added a new codec translation module, codec_resample, which re-samples
+ signed linear audio between 8 kHz and 16 kHz to help support wideband
+ codecs.
Modified: trunk/codecs/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/codecs/Makefile?view=diff&rev=95501&r1=95500&r2=95501
==============================================================================
--- trunk/codecs/Makefile (original)
+++ trunk/codecs/Makefile Mon Dec 31 15:22:31 2007
@@ -54,3 +54,5 @@
@$(MAKE) -C g722 all
$(if $(filter codec_g722,$(EMBEDDED_MODS)),modules.link,codec_g722.so): $(LIBG722)
+
+codec_resample.o: ASTCFLAGS+=-I$(ASTTOPDIR)/main/libresample/include
Modified: trunk/main/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/main/Makefile?view=diff&rev=95501&r1=95500&r2=95501
==============================================================================
--- trunk/main/Makefile (original)
+++ trunk/main/Makefile Mon Dec 31 15:22:31 2007
@@ -111,6 +111,9 @@
db1-ast/libdb1.a: CHECK_SUBDIR
CFLAGS="$(ASTCFLAGS)" LDFLAGS="$(ASTLDFLAGS)" $(MAKE) -C db1-ast libdb1.a
+libresample/libresample.a: CHECK_SUBDIR
+ $(MAKE) -f Makefile.asterisk -C libresample libresample.a
+
ast_expr2.c ast_expr2.h:
bison -o $@ -d --name-prefix=ast_yy ast_expr2.y
@@ -152,7 +155,7 @@
MAIN_TGT:=asterisk
endif
-$(MAIN_TGT): $(OBJS) editline/libedit.a db1-ast/libdb1.a minimime/libmmime.a $(AST_EMBED_LDSCRIPTS)
+$(MAIN_TGT): $(OBJS) editline/libedit.a db1-ast/libdb1.a minimime/libmmime.a $(AST_EMBED_LDSCRIPTS) libresample/libresample.a
@$(CC) -c -o buildinfo.o $(ASTCFLAGS) buildinfo.c
$(ECHO_PREFIX) echo " [LD] $^ -> $@"
ifneq ($(findstring chan_h323,$(MENUSELECT_CHANNELS)),)
@@ -169,3 +172,4 @@
@$(MAKE) -C db1-ast clean
@$(MAKE) -C stdtime clean
@$(MAKE) -C minimime clean
+ @$(MAKE) -f Makefile.asterisk -C libresample clean
Propchange: trunk/main/libresample/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Mon Dec 31 15:22:31 2007
@@ -1,0 +1,2 @@
+*.d
+libresample.a
More information about the asterisk-commits
mailing list