Switch to using AudioEncoderOpus instead of ACMOpus
This change switches from the old codec wrapper ACMOpus to the new AudioEncoderOpus wrapped in an ACMGenericCodecWrapper. BUG=4228 TEST=Please, try the Opus codec extensively. COAUTHOR=kwiberg@webrtc.org R=tina.legrand@webrtc.org Review URL: https://webrtc-codereview.appspot.com/33259004 Cr-Commit-Position: refs/heads/master@{#8341} git-svn-id: http://webrtc.googlecode.com/svn/trunk@8341 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -695,7 +695,9 @@ ACMGenericCodec* ACMCodecDB::CreateCodecInstance(const CodecInst& codec_inst,
|
||||
#endif
|
||||
} else if (!STR_CASE_CMP(codec_inst.plname, "opus")) {
|
||||
#ifdef WEBRTC_CODEC_OPUS
|
||||
return new ACMOpus(kOpus, enable_red);
|
||||
return new ACMGenericCodecWrapper(codec_inst, cng_pt_nb, cng_pt_wb,
|
||||
cng_pt_swb, cng_pt_fb, enable_red,
|
||||
red_payload_type);
|
||||
#endif
|
||||
} else if (!STR_CASE_CMP(codec_inst.plname, "speex")) {
|
||||
#ifdef WEBRTC_CODEC_SPEEX
|
||||
|
||||
Reference in New Issue
Block a user