Remove the preprocessor symbol WEBRTC_CODEC_AVT (it was always defined)
BUG=webrtc:4557 Review URL: https://codereview.webrtc.org/1338283002 Cr-Commit-Position: refs/heads/master@{#9960}
This commit is contained in:
@ -75,9 +75,7 @@ const CodecInst ACMCodecDB::database_[] = {
|
||||
#ifdef ENABLE_48000_HZ
|
||||
{100, "CN", 48000, 1440, 1, 0},
|
||||
#endif
|
||||
#ifdef WEBRTC_CODEC_AVT
|
||||
{106, "telephone-event", 8000, 240, 1, 0},
|
||||
#endif
|
||||
#ifdef WEBRTC_CODEC_RED
|
||||
{127, "red", 8000, 0, 1, 0},
|
||||
#endif
|
||||
@ -134,9 +132,7 @@ const ACMCodecDB::CodecSettings ACMCodecDB::codec_settings_[] = {
|
||||
#ifdef ENABLE_48000_HZ
|
||||
{1, {1440}, 1440, 1, false},
|
||||
#endif
|
||||
#ifdef WEBRTC_CODEC_AVT
|
||||
{1, {240}, 240, 1, false},
|
||||
#endif
|
||||
#ifdef WEBRTC_CODEC_RED
|
||||
{1, {0}, 0, 1, false},
|
||||
#endif
|
||||
@ -188,9 +184,7 @@ const NetEqDecoder ACMCodecDB::neteq_decoders_[] = {
|
||||
#ifdef ENABLE_48000_HZ
|
||||
, kDecoderCNGswb48kHz
|
||||
#endif
|
||||
#ifdef WEBRTC_CODEC_AVT
|
||||
, kDecoderAVT
|
||||
#endif
|
||||
#ifdef WEBRTC_CODEC_RED
|
||||
, kDecoderRED
|
||||
#endif
|
||||
|
||||
@ -71,9 +71,7 @@ class ACMCodecDB {
|
||||
#ifdef ENABLE_48000_HZ
|
||||
, kCNFB
|
||||
#endif
|
||||
#ifdef WEBRTC_CODEC_AVT
|
||||
, kAVT
|
||||
#endif
|
||||
#ifdef WEBRTC_CODEC_RED
|
||||
, kRED
|
||||
#endif
|
||||
@ -103,9 +101,6 @@ class ACMCodecDB {
|
||||
// Mono and stereo
|
||||
enum {kOpus = -1};
|
||||
#endif
|
||||
#ifndef WEBRTC_CODEC_AVT
|
||||
enum {kAVT = -1};
|
||||
#endif
|
||||
#ifndef WEBRTC_CODEC_RED
|
||||
enum {kRED = -1};
|
||||
#endif
|
||||
|
||||
@ -1130,13 +1130,11 @@ bool AudioCodingImpl::MapCodecTypeToParameters(int codec_type,
|
||||
*sample_rate_hz = 8000;
|
||||
*channels = 1;
|
||||
break;
|
||||
#ifdef WEBRTC_CODEC_AVT
|
||||
case acm2::ACMCodecDB::kAVT:
|
||||
*codec_name = "telephone-event";
|
||||
*sample_rate_hz = 8000;
|
||||
*channels = 1;
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
FATAL() << "Codec type " << codec_type << " not supported.";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user