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

Unified Diff: webrtc/modules/audio_coding/codecs/builtin_audio_decoder_factory.cc

Issue 2072753002: WebRtcVoiceEngine: Use AudioDecoderFactory to generate recv codecs. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 6 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/codecs/builtin_audio_decoder_factory.cc
diff --git a/webrtc/modules/audio_coding/codecs/builtin_audio_decoder_factory.cc b/webrtc/modules/audio_coding/codecs/builtin_audio_decoder_factory.cc
index 48b2f5d437312de30531837bda4c34fb9ca04732..5f4cb157a88fe2abc237412d475b3df6239022ed 100644
--- a/webrtc/modules/audio_coding/codecs/builtin_audio_decoder_factory.cc
+++ b/webrtc/modules/audio_coding/codecs/builtin_audio_decoder_factory.cc
@@ -130,7 +130,21 @@ NamedDecoderConstructor decoder_constructors[] = {
class BuiltinAudioDecoderFactory : public AudioDecoderFactory {
public:
std::vector<SdpAudioFormat> GetSupportedFormats() override {
- FATAL() << "Not implemented yet!";
+ static std::vector<SdpAudioFormat> formats = {
ossu 2016/06/16 16:21:25 kwiberg: If you've got this in one of your CLs, ma
+ { "opus", 48000, 2, {
+ {"minptime", "10" },
+ {"useinbandfec", "1" }
+ }
+ },
+ { "isac", 16000, 1 },
+ { "isac", 32000, 1 },
+ { "G722", 8000, 1 },
+ { "iLBC", 8000, 1 },
+ { "PCMU", 8000, 1 },
+ { "PCMA", 8000, 1 }
+ };
+
+ return formats;
}
std::unique_ptr<AudioDecoder> MakeAudioDecoder(

Powered by Google App Engine
This is Rietveld 408576698