Index: webrtc/modules/audio_coding/acm2/rent_a_codec.cc |
diff --git a/webrtc/modules/audio_coding/acm2/rent_a_codec.cc b/webrtc/modules/audio_coding/acm2/rent_a_codec.cc |
index e7aebcd14b79ee8a3bda9184e17b97ce4d7f219e..9468f0c921a9eabf9425291f9753c5c6a4472f88 100644 |
--- a/webrtc/modules/audio_coding/acm2/rent_a_codec.cc |
+++ b/webrtc/modules/audio_coding/acm2/rent_a_codec.cc |
@@ -94,7 +94,19 @@ rtc::Optional<SdpAudioFormat> RentACodec::NetEqDecoderToSdpAudioFormat( |
return rtc::Optional<SdpAudioFormat>( |
SdpAudioFormat("opus", 48000, 2, |
std::map<std::string, std::string>{{"stereo", "1"}})); |
- |
+ case NetEqDecoder::kDecoderRED: |
+ return rtc::Optional<SdpAudioFormat>(SdpAudioFormat("red", 8000, 1)); |
+ case NetEqDecoder::kDecoderAVT: |
+ return rtc::Optional<SdpAudioFormat>( |
+ SdpAudioFormat("telephone-event", 8000, 1)); |
+ case NetEqDecoder::kDecoderCNGnb: |
+ return rtc::Optional<SdpAudioFormat>(SdpAudioFormat("cn", 8000, 1)); |
+ case NetEqDecoder::kDecoderCNGwb: |
+ return rtc::Optional<SdpAudioFormat>(SdpAudioFormat("cn", 16000, 1)); |
+ case NetEqDecoder::kDecoderCNGswb32kHz: |
+ return rtc::Optional<SdpAudioFormat>(SdpAudioFormat("cn", 32000, 1)); |
+ case NetEqDecoder::kDecoderCNGswb48kHz: |
+ return rtc::Optional<SdpAudioFormat>(SdpAudioFormat("cn", 48000, 1)); |
default: |
return rtc::Optional<SdpAudioFormat>(); |
} |