From 21cb767db7d4854769d6a9d15e2008ab27c404a5 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Mon, 31 Dec 2007 21:22:31 +0000 Subject: 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. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95501 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/libresample/Makefile.in | 52 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 main/libresample/Makefile.in (limited to 'main/libresample/Makefile.in') diff --git a/main/libresample/Makefile.in b/main/libresample/Makefile.in new file mode 100644 index 000000000..8d17d19b4 --- /dev/null +++ b/main/libresample/Makefile.in @@ -0,0 +1,52 @@ +# Run configure to generate Makefile from Makefile.in on +# any system supported by GNU autoconf. For all other +# systems, use this file as a template to create a +# working Makefile. + +CC = @CC@ +CFLAGS = @CFLAGS@ -Wall + +LIBS = @LIBS@ -lm + +AR = @AR@ +RANLIB = @RANLIB@ + +OBJS = \ + src/resample.c.o \ + src/resamplesubs.c.o \ + src/filterkit.c.o + +TARGETS = @TARGETS@ + +all: $(TARGETS) + +libresample.a: $(OBJS) Makefile + $(AR) ruv libresample.a $(OBJS) + ranlib libresample.a + +tests/testresample: libresample.a tests/testresample.c + $(CC) -o tests/testresample \ + $(CFLAGS) tests/testresample.c \ + libresample.a $(LIBS) + +tests/compareresample: libresample.a tests/compareresample.c + $(CC) -o tests/compareresample \ + $(CFLAGS) tests/compareresample.c \ + libresample.a -lsamplerate $(LIBS) + +tests/resample-sndfile: libresample.a tests/resample-sndfile.c + $(CC) -o tests/resample-sndfile \ + $(CFLAGS) tests/resample-sndfile.c \ + libresample.a -lsndfile $(LIBS) + +clean: + rm -f $(TARGETS) $(OBJS) + +distclean: clean + rm -f Makefile + rm -f config.status config.cache config.log src/config.h + rm -f *~ src/*~ tests/*~ include/*~ + +%.c.o: %.c Makefile include/libresample.h \ + src/resample_defs.h src/filterkit.h src/config.h + $(CC) -c $(CFLAGS) $< -o $@ -- cgit v1.2.3