From 5bbab86675b1a9bcc540aecd923363371b7b9b6e Mon Sep 17 00:00:00 2001 From: dvossel Date: Mon, 21 Jun 2010 21:58:33 +0000 Subject: 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: http://svn.digium.com/svn/asterisk/trunk@271625 f38db490-d61c-443f-a65b-d21fe96a405b --- codecs/codec_speex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'codecs/codec_speex.c') 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 ? */ -- cgit v1.2.3