summaryrefslogtreecommitdiff
path: root/codecs/codec_speex.c
diff options
context:
space:
mode:
authorDavid Vossel <dvossel@digium.com>2010-06-21 21:58:33 +0000
committerDavid Vossel <dvossel@digium.com>2010-06-21 21:58:33 +0000
commitd4bbf88e96dd93248c13391a33709f21e7209fdd (patch)
treed441f2cbcb649a6aef8bbaa815c9ed2ed9ab32c4 /codecs/codec_speex.c
parentb3281ac7254b277bb12eb284a381e67687716e85 (diff)
add speex 16khz sample frame so codec cost can be calculated
(closes issue #17534) Reported by: fabled Patches: speex-wb-sample.diff uploaded by fabled (license 448) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@271625 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'codecs/codec_speex.c')
-rw-r--r--codecs/codec_speex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/codecs/codec_speex.c b/codecs/codec_speex.c
index 85f231f9b..2bfdec228 100644
--- a/codecs/codec_speex.c
+++ b/codecs/codec_speex.c
@@ -363,7 +363,7 @@ static struct ast_translator speexwbtolin16 = {
.newpvt = speexwbtolin16_new,
.framein = speextolin_framein,
.destroy = speextolin_destroy,
- .sample = speex_sample,
+ .sample = speex16_sample,
.desc_size = sizeof(struct speex_coder_pvt),
.buffer_samples = BUFFER_SAMPLES,
.buf_size = BUFFER_SAMPLES * 2,
@@ -378,7 +378,7 @@ static struct ast_translator lin16tospeexwb = {
.framein = lintospeex_framein,
.frameout = lintospeex_frameout,
.destroy = lintospeex_destroy,
- .sample = slin8_sample,
+ .sample = slin16_sample,
.desc_size = sizeof(struct speex_coder_pvt),
.buffer_samples = BUFFER_SAMPLES,
.buf_size = BUFFER_SAMPLES * 2, /* XXX maybe a lot less ? */