mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 03:20:57 +00:00
Version 0.2.0 from FTP
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@509 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
#MODG723=codec_g723_1.so codec_g723_1b.so
|
||||
MODG723=$(shell [ -f g723.1/coder.c ] && echo "codec_g723_1.so")
|
||||
MODG723+=$(shell [ -f g723.1b/coder2.c ] && echo "codec_g723_1b.so")
|
||||
|
||||
MODSPEEX=$(shell [ -f /usr/include/speex.h ] && echo "codec_speex.so")
|
||||
CFLAGS+=
|
||||
|
||||
LIBG723=g723.1/libg723.a
|
||||
@@ -29,8 +29,9 @@ LIBGSM=$(shell if uname -m | grep -q 86; then echo gsm/lib/libgsm.a; else echo "
|
||||
LIBGSMT=$(shell if uname -m | grep -q 86; then echo gsm/lib/libgsm.a; fi)
|
||||
LIBMP3=mp3/libmp3.a
|
||||
LIBLPC10=lpc10/liblpc10.a
|
||||
LIBSPEEX=-lspeex -lm
|
||||
|
||||
CODECS+=$(MODG723) codec_gsm.so codec_mp3_d.so codec_lpc10.so \
|
||||
CODECS+=$(MODG723) $(MODSPEEX) codec_gsm.so codec_mp3_d.so codec_lpc10.so \
|
||||
codec_adpcm.so codec_ulaw.so codec_alaw.so codec_a_mu.so
|
||||
|
||||
all: $(CODECS)
|
||||
@@ -70,6 +71,9 @@ codec_g723_1b.so : codec_g723_1b.o $(LIBG723B)
|
||||
codec_gsm.so: codec_gsm.o $(LIBGSMT)
|
||||
$(CC) -shared -Xlinker -x -o $@ $< $(LIBGSM)
|
||||
|
||||
codec_speex.so: codec_speex.o
|
||||
$(CC) -shared -Xlinker -x -o $@ $< $(LIBSPEEX)
|
||||
|
||||
codec_lpc10.so: codec_lpc10.o $(LIBLPC10)
|
||||
$(CC) -shared -Xlinker -x -o $@ $< $(LIBLPC10) -lm
|
||||
|
||||
|
28
codecs/slin_speex_ex.h
Executable file
28
codecs/slin_speex_ex.h
Executable file
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Signed 16-bit audio data
|
||||
*
|
||||
* Source: speex.example
|
||||
*
|
||||
* Copyright (C) 1999, Mark Spencer
|
||||
*
|
||||
* Distributed under the terms of the GNU General Public License
|
||||
*
|
||||
*/
|
||||
|
||||
static signed short slin_speex_ex[] = {
|
||||
000000, 000000, 000000, 000000, 000000, 000000, 000000, 000000, 000000, 000000,
|
||||
000000, 000000, 000000, 000000, 000000, 000000, 000000, 000000, 000000, 000000,
|
||||
000000, 000000, 000000, 000000, 000000, 000000, 000000, 000000, 000000, 000000,
|
||||
000000, 000000, 000000, 000000, 000000, 000000, 000000, 000000, 000000, 000000,
|
||||
000000, 000000, 000000, 000000, 000000, 000000, 000000, 000000, 000000, 000000,
|
||||
000000, 000000, 000000, 000000, 000000, 000000, 000000, 000000, 000000, 000000,
|
||||
000000, 000000, 000000, 000000, 000000, 000000, 000000, 000000, 0xfff8, 000000,
|
||||
000000, 000000, 000000, 000000, 000000, 000000, 000000, 000000, 000000, 000000,
|
||||
000000, 000000, 000000, 000000, 000000, 000000, 000000, 000000, 000000, 000000,
|
||||
000000, 000000, 000000, 000000, 000000, 000000, 000000, 000000, 000000, 000000,
|
||||
000000, 0x0008, 000000, 000000, 000000, 000000, 000000, 000000, 000000, 000000,
|
||||
000000, 000000, 000000, 000000, 000000, 000000, 000000, 000000, 000000, 000000,
|
||||
0x0008, 000000, 000000, 000000, 0xfff8, 000000, 000000, 000000, 000000, 000000,
|
||||
000000, 000000, 000000, 000000, 000000, 000000, 000000, 000000, 000000, 000000,
|
||||
000000, 000000, 000000, 000000, 000000, 000000, 000000, 000000, 000000, 000000,
|
||||
000000, 000000, 000000, 000000, 000000, 000000, 0x0008, 000000, 000000, 000000 };
|
Reference in New Issue
Block a user