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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 // kOutputVADPassive when the signal contains no speech. | 162 // kOutputVADPassive when the signal contains no speech. |
163 void EnableVad() override; | 163 void EnableVad() override; |
164 | 164 |
165 // Disables post-decode VAD. | 165 // Disables post-decode VAD. |
166 void DisableVad() override; | 166 void DisableVad() override; |
167 | 167 |
168 rtc::Optional<uint32_t> GetPlayoutTimestamp() const override; | 168 rtc::Optional<uint32_t> GetPlayoutTimestamp() const override; |
169 | 169 |
170 int last_output_sample_rate_hz() const override; | 170 int last_output_sample_rate_hz() const override; |
171 | 171 |
| 172 rtc::Optional<CodecInst> GetDecoder(int payload_type) const override; |
| 173 |
172 int SetTargetNumberOfChannels() override; | 174 int SetTargetNumberOfChannels() override; |
173 | 175 |
174 int SetTargetSampleRate() override; | 176 int SetTargetSampleRate() override; |
175 | 177 |
176 // Returns the error code for the last occurred error. If no error has | 178 // Returns the error code for the last occurred error. If no error has |
177 // occurred, 0 is returned. | 179 // occurred, 0 is returned. |
178 int LastError() const override; | 180 int LastError() const override; |
179 | 181 |
180 // Returns the error code last returned by a decoder (audio or comfort noise). | 182 // Returns the error code last returned by a decoder (audio or comfort noise). |
181 // When LastError() returns kDecoderErrorCode or kComfortNoiseErrorCode, check | 183 // When LastError() returns kDecoderErrorCode or kComfortNoiseErrorCode, check |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 AudioFrame::kVadPassive; | 403 AudioFrame::kVadPassive; |
402 std::unique_ptr<TickTimer::Stopwatch> generated_noise_stopwatch_ | 404 std::unique_ptr<TickTimer::Stopwatch> generated_noise_stopwatch_ |
403 GUARDED_BY(crit_sect_); | 405 GUARDED_BY(crit_sect_); |
404 | 406 |
405 private: | 407 private: |
406 RTC_DISALLOW_COPY_AND_ASSIGN(NetEqImpl); | 408 RTC_DISALLOW_COPY_AND_ASSIGN(NetEqImpl); |
407 }; | 409 }; |
408 | 410 |
409 } // namespace webrtc | 411 } // namespace webrtc |
410 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_NETEQ_IMPL_H_ | 412 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_NETEQ_IMPL_H_ |
OLD | NEW |