From b8e298f1fae8d454af9ffc27b5dfa957d37c93f4 Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Sat, 7 Apr 2001 01:32:10 +0000 Subject: [PATCH] Version 0.1.8 from FTP git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@266 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- codecs/Makefile | 2 +- codecs/slin_ulaw_ex.h | 25 +++++++++++++++++++++++++ codecs/ulaw_slin_ex.h | 25 +++++++++++++++++++++++++ 3 files changed, 51 insertions(+), 1 deletion(-) create mode 100755 codecs/slin_ulaw_ex.h create mode 100755 codecs/ulaw_slin_ex.h diff --git a/codecs/Makefile b/codecs/Makefile index b07d72c640..da84127e5e 100755 --- a/codecs/Makefile +++ b/codecs/Makefile @@ -28,7 +28,7 @@ LIBGSM=gsm/lib/libgsm.a LIBMP3=mp3/libmp3.a LIBLPC10=lpc10/liblpc10.a -CODECS+=$(MODG723) codec_gsm.so codec_mp3_d.so codec_lpc10.so codec_adpcm.so +CODECS+=$(MODG723) codec_gsm.so codec_mp3_d.so codec_lpc10.so codec_adpcm.so codec_ulaw.so all: $(CODECS) diff --git a/codecs/slin_ulaw_ex.h b/codecs/slin_ulaw_ex.h new file mode 100755 index 0000000000..c9016aef07 --- /dev/null +++ b/codecs/slin_ulaw_ex.h @@ -0,0 +1,25 @@ +/* + * slin_ulaw_ex.h -- + * + * Signed 16-bit audio data, 10 milliseconds worth at 8 kHz. + * + * Source: g723.example + * + * Copyright (C) 2001, Linux Support Services, Inc. + * + * Distributed under the terms of the GNU General Public License + * + */ + +static signed short slin_ulaw_ex[] = { + 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000 +}; diff --git a/codecs/ulaw_slin_ex.h b/codecs/ulaw_slin_ex.h new file mode 100755 index 0000000000..897808f249 --- /dev/null +++ b/codecs/ulaw_slin_ex.h @@ -0,0 +1,25 @@ +/* + * ulaw_slin_ex.h -- + * + * 4-bit ADPCM data, 20 milliseconds worth at 8 kHz. + * + * Source: g723.example + * + * Copyright (C) 2001, Linux Support Services, Inc. + * + * Distributed under the terms of the GNU General Public License + * + */ + +static unsigned char ulaw_slin_ex[] = { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 +};