Index: webrtc/modules/audio_coding/main/acm2/rent_a_codec.h |
diff --git a/webrtc/modules/audio_coding/main/acm2/rent_a_codec.h b/webrtc/modules/audio_coding/main/acm2/rent_a_codec.h |
index 8482d8f4f9a0ecbdd5a15db910ce4d4f02793109..55a5d0361a9958ff050aa872ea18ac9c1304d1d6 100644 |
--- a/webrtc/modules/audio_coding/main/acm2/rent_a_codec.h |
+++ b/webrtc/modules/audio_coding/main/acm2/rent_a_codec.h |
@@ -97,6 +97,36 @@ class RentACodec { |
kNone = -1 |
}; |
+ enum class NetEqDecoder { |
+ kDecoderPCMu, |
+ kDecoderPCMa, |
+ kDecoderPCMu_2ch, |
+ kDecoderPCMa_2ch, |
+ kDecoderILBC, |
+ kDecoderISAC, |
+ kDecoderISACswb, |
+ kDecoderPCM16B, |
+ kDecoderPCM16Bwb, |
+ kDecoderPCM16Bswb32kHz, |
+ kDecoderPCM16Bswb48kHz, |
+ kDecoderPCM16B_2ch, |
+ kDecoderPCM16Bwb_2ch, |
+ kDecoderPCM16Bswb32kHz_2ch, |
+ kDecoderPCM16Bswb48kHz_2ch, |
+ kDecoderPCM16B_5ch, |
+ kDecoderG722, |
+ kDecoderG722_2ch, |
+ kDecoderRED, |
+ kDecoderAVT, |
+ kDecoderCNGnb, |
+ kDecoderCNGwb, |
+ kDecoderCNGswb32kHz, |
+ kDecoderCNGswb48kHz, |
+ kDecoderArbitrary, |
+ kDecoderOpus, |
+ kDecoderOpus_2ch, |
+ }; |
+ |
static inline size_t NumberOfCodecs() { |
return static_cast<size_t>(CodecId::kNumCodecs); |
} |
@@ -121,6 +151,9 @@ class RentACodec { |
int channels); |
static bool IsCodecValid(const CodecInst& codec_inst); |
static rtc::ArrayView<const CodecInst> Database(); |
+ |
+ static rtc::Maybe<NetEqDecoder> NetEqDecoderFromCodecId(CodecId codec_id, |
+ int num_channels); |
}; |
} // namespace acm2 |