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 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 return &codec_stack_params_; | 46 return &codec_stack_params_; |
47 } | 47 } |
48 RentACodec::StackParameters* GetStackParams() { return &codec_stack_params_; } | 48 RentACodec::StackParameters* GetStackParams() { return &codec_stack_params_; } |
49 | 49 |
50 bool SetCopyRed(bool enable); | 50 bool SetCopyRed(bool enable); |
51 | 51 |
52 bool SetVAD(bool enable, ACMVADMode mode); | 52 bool SetVAD(bool enable, ACMVADMode mode); |
53 | 53 |
54 bool SetCodecFEC(bool enable_codec_fec); | 54 bool SetCodecFEC(bool enable_codec_fec); |
55 | 55 |
56 bool CurrentEncoderIsOpus() const; | |
57 | |
58 private: | 56 private: |
59 rtc::ThreadChecker thread_checker_; | 57 rtc::ThreadChecker thread_checker_; |
60 rtc::Optional<CodecInst> send_codec_inst_; | 58 rtc::Optional<CodecInst> send_codec_inst_; |
61 RentACodec::StackParameters codec_stack_params_; | 59 RentACodec::StackParameters codec_stack_params_; |
62 | 60 |
63 RTC_DISALLOW_COPY_AND_ASSIGN(CodecManager); | 61 RTC_DISALLOW_COPY_AND_ASSIGN(CodecManager); |
64 }; | 62 }; |
65 | 63 |
66 } // namespace acm2 | 64 } // namespace acm2 |
67 } // namespace webrtc | 65 } // namespace webrtc |
68 #endif // WEBRTC_MODULES_AUDIO_CODING_ACM2_CODEC_MANAGER_H_ | 66 #endif // WEBRTC_MODULES_AUDIO_CODING_ACM2_CODEC_MANAGER_H_ |
OLD | NEW |