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

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

Issue 2355503002: Stopped using the NetEqDecoder enum internally in NetEq. (Closed)
Patch Set: Clarified comments. Created 4 years, 3 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 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>();
}
« no previous file with comments | « webrtc/modules/audio_coding/acm2/acm_receiver.cc ('k') | webrtc/modules/audio_coding/neteq/decoder_database.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698