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

Unified Diff: webrtc/modules/audio_coding/neteq/audio_decoder_impl.cc

Issue 1353803002: Simple cleanups of AudioDecoder and AudioEncoder classes (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@dmove-isac
Patch Set: rebase Created 5 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/neteq/audio_decoder_impl.cc
diff --git a/webrtc/modules/audio_coding/neteq/audio_decoder_impl.cc b/webrtc/modules/audio_coding/neteq/audio_decoder_impl.cc
index 52f327bc615f1379ceb94bfe0c3defcba2da48c1..afad9b1d6b0d40bfa468160541f333918cf9df64 100644
--- a/webrtc/modules/audio_coding/neteq/audio_decoder_impl.cc
+++ b/webrtc/modules/audio_coding/neteq/audio_decoder_impl.cc
@@ -183,13 +183,13 @@ AudioDecoder* CreateAudioDecoder(NetEqDecoder codec_type) {
}
switch (codec_type) {
case kDecoderPCMu:
- return new AudioDecoderPcmU;
+ return new AudioDecoderPcmU(1);
case kDecoderPCMa:
- return new AudioDecoderPcmA;
+ return new AudioDecoderPcmA(1);
case kDecoderPCMu_2ch:
- return new AudioDecoderPcmUMultiCh(2);
+ return new AudioDecoderPcmU(2);
case kDecoderPCMa_2ch:
- return new AudioDecoderPcmAMultiCh(2);
+ return new AudioDecoderPcmA(2);
#ifdef WEBRTC_CODEC_ILBC
case kDecoderILBC:
return new AudioDecoderIlbc;
@@ -207,14 +207,14 @@ AudioDecoder* CreateAudioDecoder(NetEqDecoder codec_type) {
case kDecoderPCM16Bwb:
case kDecoderPCM16Bswb32kHz:
case kDecoderPCM16Bswb48kHz:
- return new AudioDecoderPcm16B;
+ return new AudioDecoderPcm16B(1);
case kDecoderPCM16B_2ch:
case kDecoderPCM16Bwb_2ch:
case kDecoderPCM16Bswb32kHz_2ch:
case kDecoderPCM16Bswb48kHz_2ch:
- return new AudioDecoderPcm16BMultiCh(2);
+ return new AudioDecoderPcm16B(2);
case kDecoderPCM16B_5ch:
- return new AudioDecoderPcm16BMultiCh(5);
+ return new AudioDecoderPcm16B(5);
#ifdef WEBRTC_CODEC_G722
case kDecoderG722:
return new AudioDecoderG722;

Powered by Google App Engine
This is Rietveld 408576698