diff options
author | dvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-06-21 21:58:33 +0000 |
---|---|---|
committer | dvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-06-21 21:58:33 +0000 |
commit | 5bbab86675b1a9bcc540aecd923363371b7b9b6e (patch) | |
tree | d441f2cbcb649a6aef8bbaa815c9ed2ed9ab32c4 /codecs/codec_speex.c | |
parent | fcbb9abe3e4d7f793a1148b6dcbc5e66c1211c39 (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: http://svn.digium.com/svn/asterisk/trunk@271625 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'codecs/codec_speex.c')
-rw-r--r-- | codecs/codec_speex.c | 4 |
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 ? */ |