Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(219)

Unified Diff: webrtc/modules/audio_coding/acm2/rent_a_codec.cc

Issue 2337473002: Multi frequency DTMF support - receiver side (Closed)
Patch Set: rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 9468f0c921a9eabf9425291f9753c5c6a4472f88..286308cf57745bb0901d3f74ec032418ab9aa4d7 100644
--- a/webrtc/modules/audio_coding/acm2/rent_a_codec.cc
+++ b/webrtc/modules/audio_coding/acm2/rent_a_codec.cc
@@ -96,9 +96,18 @@ rtc::Optional<SdpAudioFormat> RentACodec::NetEqDecoderToSdpAudioFormat(
std::map<std::string, std::string>{{"stereo", "1"}}));
case NetEqDecoder::kDecoderRED:
return rtc::Optional<SdpAudioFormat>(SdpAudioFormat("red", 8000, 1));
- case NetEqDecoder::kDecoderAVT:
+ case NetEqDecoder::kDecoderAVT8kHz:
return rtc::Optional<SdpAudioFormat>(
SdpAudioFormat("telephone-event", 8000, 1));
+ case NetEqDecoder::kDecoderAVT16kHz:
+ return rtc::Optional<SdpAudioFormat>(
+ SdpAudioFormat("telephone-event", 16000, 1));
+ case NetEqDecoder::kDecoderAVT32kHz:
+ return rtc::Optional<SdpAudioFormat>(
+ SdpAudioFormat("telephone-event", 32000, 1));
+ case NetEqDecoder::kDecoderAVT48kHz:
+ return rtc::Optional<SdpAudioFormat>(
+ SdpAudioFormat("telephone-event", 48000, 1));
case NetEqDecoder::kDecoderCNGnb:
return rtc::Optional<SdpAudioFormat>(SdpAudioFormat("cn", 8000, 1));
case NetEqDecoder::kDecoderCNGwb:

Powered by Google App Engine
This is Rietveld 408576698