Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 130 // If send codec is Opus on a specified |channel|, set its DTX. Returns 0 if | 130 // If send codec is Opus on a specified |channel|, set its DTX. Returns 0 if |
| 131 // success, and -1 if failed. | 131 // success, and -1 if failed. |
| 132 virtual int SetOpusDtx(int channel, bool enable_dtx) = 0; | 132 virtual int SetOpusDtx(int channel, bool enable_dtx) = 0; |
| 133 | 133 |
| 134 // If send codec is Opus on a specified |channel|, return its DTX status. | 134 // If send codec is Opus on a specified |channel|, return its DTX status. |
| 135 // Returns 0 on success, and -1 if failed. | 135 // Returns 0 on success, and -1 if failed. |
| 136 // TODO(ivoc): Make GetOpusDtxStatus() pure virtual when all deriving classes | 136 // TODO(ivoc): Make GetOpusDtxStatus() pure virtual when all deriving classes |
| 137 // are updated. | 137 // are updated. |
| 138 virtual int GetOpusDtxStatus(int channel, bool* enabled) { return -1; } | 138 virtual int GetOpusDtxStatus(int channel, bool* enabled) { return -1; } |
| 139 | 139 |
| 140 // If send codec is Opus on a specified |channel|, set its CBR. Returns 0 if | |
| 141 // success, and -1 if failed. | |
| 142 virtual int SetOpusCbr(int channel, bool enable_cbr) = 0; | |
|
the sun
2017/03/23 08:46:44
The legacy VoE APIs (e.g. VoECodec) are in the pro
| |
| 143 | |
| 144 // If send codec is Opus on a specified |channel|, return its CBR status. | |
| 145 // Returns 0 on success, and -1 if failed. | |
| 146 virtual int GetOpusCbrStatus(int channel, bool* enabled) { return -1; } | |
| 147 | |
| 140 protected: | 148 protected: |
| 141 VoECodec() {} | 149 VoECodec() {} |
| 142 virtual ~VoECodec() {} | 150 virtual ~VoECodec() {} |
| 143 }; | 151 }; |
| 144 | 152 |
| 145 } // namespace webrtc | 153 } // namespace webrtc |
| 146 | 154 |
| 147 #endif // WEBRTC_VOICE_ENGINE_VOE_CODEC_H | 155 #endif // WEBRTC_VOICE_ENGINE_VOE_CODEC_H |
| OLD | NEW |