Add support for external decoders in ACM

Test added too.

COAUTHOR=henrik.lundin@webrtc.org
BUG=4474
TBR=minyue@webrtc.org

Review URL: https://codereview.webrtc.org/1312493004

Cr-Commit-Position: refs/heads/master@{#9765}
This commit is contained in:
kwiberg
2015-08-24 05:27:22 -07:00
committed by Commit bot
parent e7cdc7f5a0
commit 4e14f0961b
8 changed files with 149 additions and 37 deletions

View File

@ -29,6 +29,7 @@ struct WebRtcRTPHeader;
class AudioFrame;
class RTPFragmentationHeader;
class AudioEncoderMutable;
class AudioDecoder;
#define WEBRTC_10MS_PCM_AUDIO 960 // 16 bits super wideband 48 kHz
@ -576,8 +577,12 @@ class AudioCodingModule {
// -1 if failed to register the codec
// 0 if the codec registered successfully.
//
virtual int32_t RegisterReceiveCodec(
const CodecInst& receive_codec) = 0;
virtual int RegisterReceiveCodec(const CodecInst& receive_codec) = 0;
virtual int RegisterExternalReceiveCodec(int rtp_payload_type,
AudioDecoder* external_decoder,
int sample_rate_hz,
int num_channels) = 0;
///////////////////////////////////////////////////////////////////////////
// int32_t UnregisterReceiveCodec()