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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 // TODO(minyue): Make SetOpusMaxPlaybackRate() pure virtual when | 124 // TODO(minyue): Make SetOpusMaxPlaybackRate() pure virtual when |
125 // fakewebrtcvoiceengine in talk is ready. | 125 // fakewebrtcvoiceengine in talk is ready. |
126 virtual int SetOpusMaxPlaybackRate(int channel, int frequency_hz) { | 126 virtual int SetOpusMaxPlaybackRate(int channel, int frequency_hz) { |
127 return -1; | 127 return -1; |
128 } | 128 } |
129 | 129 |
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. |
| 135 // Returns 0 on success, and -1 if failed. |
| 136 // TODO(ivoc): Make GetOpusDtxStatus() pure virtual when all deriving classes |
| 137 // are updated. |
| 138 virtual int GetOpusDtxStatus(int channel, bool* enabled) { return -1; } |
| 139 |
134 protected: | 140 protected: |
135 VoECodec() {} | 141 VoECodec() {} |
136 virtual ~VoECodec() {} | 142 virtual ~VoECodec() {} |
137 }; | 143 }; |
138 | 144 |
139 } // namespace webrtc | 145 } // namespace webrtc |
140 | 146 |
141 #endif // WEBRTC_VOICE_ENGINE_VOE_CODEC_H | 147 #endif // WEBRTC_VOICE_ENGINE_VOE_CODEC_H |
OLD | NEW |