mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 03:50:31 +00:00
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
59 lines
1.3 KiB
Makefile
59 lines
1.3 KiB
Makefile
#
|
|
# Asterisk -- A telephony toolkit for Linux.
|
|
#
|
|
# Makefile for codec modules
|
|
#
|
|
# Copyright (C) 1999-2006, Digium, Inc.
|
|
#
|
|
# Mark Spencer <markster@digium.com>
|
|
#
|
|
# This program is free software, distributed under the terms of
|
|
# the GNU General Public License
|
|
#
|
|
|
|
-include $(ASTTOPDIR)/menuselect.makeopts $(ASTTOPDIR)/menuselect.makedeps
|
|
|
|
MODULE_PREFIX=codec
|
|
MENUSELECT_CATEGORY=CODECS
|
|
MENUSELECT_DESCRIPTION=Codec Translators
|
|
|
|
LIBILBC:=ilbc/libilbc.a
|
|
LIBLPC10:=lpc10/liblpc10.a
|
|
LIBG722:=g722/libg722.a
|
|
|
|
all: _all
|
|
|
|
include $(ASTTOPDIR)/Makefile.moddir_rules
|
|
|
|
ifneq ($(GSM_INTERNAL),no)
|
|
GSM_INCLUDE:=-Igsm/inc
|
|
$(if $(filter codec_gsm,$(EMBEDDED_MODS)),modules.link,codec_gsm.so): gsm/lib/libgsm.a
|
|
endif
|
|
|
|
clean::
|
|
$(MAKE) -C gsm clean
|
|
$(MAKE) -C lpc10 clean
|
|
$(MAKE) -C ilbc clean
|
|
$(MAKE) -C g722 clean
|
|
|
|
gsm/lib/libgsm.a:
|
|
@mkdir -p gsm/lib
|
|
@$(MAKE) -C gsm lib/libgsm.a
|
|
|
|
$(LIBLPC10):
|
|
@$(MAKE) -C lpc10 all
|
|
|
|
$(if $(filter codec_lpc10,$(EMBEDDED_MODS)),modules.link,codec_lpc10.so): $(LIBLPC10)
|
|
|
|
$(LIBILBC):
|
|
@$(MAKE) -C ilbc all
|
|
|
|
$(if $(filter codec_ilbc,$(EMBEDDED_MODS)),modules.link,codec_ilbc.so): $(LIBILBC)
|
|
|
|
$(LIBG722):
|
|
@$(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
|