OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #include "webrtc/modules/audio_coding/main/acm2/codec_manager.h" | 11 #include "webrtc/modules/audio_coding/main/acm2/codec_manager.h" |
12 | 12 |
13 #include "webrtc/base/checks.h" | 13 #include "webrtc/base/checks.h" |
14 #include "webrtc/engine_configurations.h" | 14 #include "webrtc/engine_configurations.h" |
15 #include "webrtc/modules/audio_coding/main/acm2/acm_codec_database.h" | 15 #include "webrtc/modules/audio_coding/main/acm2/acm_codec_database.h" |
16 #include "webrtc/system_wrappers/interface/trace.h" | 16 #include "webrtc/system_wrappers/include/trace.h" |
17 | 17 |
18 namespace webrtc { | 18 namespace webrtc { |
19 namespace acm2 { | 19 namespace acm2 { |
20 | 20 |
21 namespace { | 21 namespace { |
22 bool IsCodecRED(const CodecInst& codec) { | 22 bool IsCodecRED(const CodecInst& codec) { |
23 return (STR_CASE_CMP(codec.plname, "RED") == 0); | 23 return (STR_CASE_CMP(codec.plname, "RED") == 0); |
24 } | 24 } |
25 | 25 |
26 bool IsCodecCN(const CodecInst& codec) { | 26 bool IsCodecCN(const CodecInst& codec) { |
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
456 case 48000: | 456 case 48000: |
457 return -1; | 457 return -1; |
458 default: | 458 default: |
459 FATAL() << sample_rate_hz << " Hz is not supported"; | 459 FATAL() << sample_rate_hz << " Hz is not supported"; |
460 return -1; | 460 return -1; |
461 } | 461 } |
462 } | 462 } |
463 | 463 |
464 } // namespace acm2 | 464 } // namespace acm2 |
465 } // namespace webrtc | 465 } // namespace webrtc |
OLD | NEW |