[asterisk-scf-commits] asterisk-scf/integration/media_operations_core.git branch "jitterbuffer" updated.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Mon Oct 17 11:45:11 CDT 2011
branch "jitterbuffer" has been updated
via 9ba0da005d0586fc14b49a664b906420cf21ffa3 (commit)
from dbf8e0bbb07fdf103df681181379860459edb801 (commit)
Summary of changes:
src/NetEqWrapper.cpp | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 9ba0da005d0586fc14b49a664b906420cf21ffa3
Author: Joshua Colp <jcolp at digium.com>
Date: Mon Oct 17 13:46:38 2011 -0300
Create the proper codec definitions.
diff --git a/src/NetEqWrapper.cpp b/src/NetEqWrapper.cpp
index c046882..5ee5b93 100644
--- a/src/NetEqWrapper.cpp
+++ b/src/NetEqWrapper.cpp
@@ -118,8 +118,16 @@ NetEqWrapperImpl::NetEqWrapperImpl(int sampleRate, bool forFax)
/**
* Set the codec to use.
*/
- SET_CODEC_PAR(mCodecDef,defaultDecoder,NETEQ_CODEC_PCM16B_PT,NULL,(WebRtc_Word16)sampleRate);
- SET_PCM16B_FUNCTIONS(mCodecDef);
+ if (sampleRate == 8000)
+ {
+ SET_CODEC_PAR(mCodecDef,kDecoderPCM16B,NETEQ_CODEC_PCM16B_PT,NULL,(WebRtc_Word16)sampleRate);
+ SET_PCM16B_FUNCTIONS(mCodecDef);
+ }
+ else if (sampleRate == 16000)
+ {
+ SET_CODEC_PAR(mCodecDef,kDecoderPCM16Bwb,NETEQ_CODEC_PCM16B_PT,NULL,(WebRtc_Word16)sampleRate);
+ SET_PCM16B_FUNCTIONS(mCodecDef);
+ }
WebRtcNetEQ_CodecDbAdd(mNetEqInstance, &mCodecDef);
// Note: Not setting master/slave relations, since we currently don't have way to associate
-----------------------------------------------------------------------
--
asterisk-scf/integration/media_operations_core.git
More information about the asterisk-scf-commits
mailing list