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 19 matching lines...) Expand all Loading... | |
| 30 int ProcessCaptureAudio(AudioBuffer* audio); | 30 int ProcessCaptureAudio(AudioBuffer* audio); |
| 31 | 31 |
| 32 // EchoCancellation implementation. | 32 // EchoCancellation implementation. |
| 33 bool is_enabled() const override; | 33 bool is_enabled() const override; |
| 34 int stream_drift_samples() const override; | 34 int stream_drift_samples() const override; |
| 35 | 35 |
| 36 // ProcessingComponent implementation. | 36 // ProcessingComponent implementation. |
| 37 int Initialize() override; | 37 int Initialize() override; |
| 38 void SetExtraOptions(const Config& config) override; | 38 void SetExtraOptions(const Config& config) override; |
| 39 | 39 |
| 40 SuppressionLevel suppression_level() const override; | |
|
peah-webrtc
2015/09/22 12:05:29
Is it really needed to change the public/private s
minyue-webrtc
2015/09/22 13:19:29
The problem is the instantiate of echo canceler in
peah-webrtc
2015/09/24 09:28:02
After a discussion together we agreed that to comp
peah-webrtc
2015/09/24 09:28:02
Acknowledged.
| |
| 41 bool is_drift_compensation_enabled() const override; | |
| 42 bool is_delay_logging_enabled() const override; | |
| 43 bool is_extended_filter_enabled() const; | |
| 44 | |
| 40 private: | 45 private: |
| 41 // EchoCancellation implementation. | 46 // EchoCancellation implementation. |
| 42 int Enable(bool enable) override; | 47 int Enable(bool enable) override; |
| 43 int enable_drift_compensation(bool enable) override; | 48 int enable_drift_compensation(bool enable) override; |
| 44 bool is_drift_compensation_enabled() const override; | |
| 45 void set_stream_drift_samples(int drift) override; | 49 void set_stream_drift_samples(int drift) override; |
| 46 int set_suppression_level(SuppressionLevel level) override; | 50 int set_suppression_level(SuppressionLevel level) override; |
| 47 SuppressionLevel suppression_level() const override; | |
| 48 int enable_metrics(bool enable) override; | 51 int enable_metrics(bool enable) override; |
| 49 bool are_metrics_enabled() const override; | 52 bool are_metrics_enabled() const override; |
| 50 bool stream_has_echo() const override; | 53 bool stream_has_echo() const override; |
| 51 int GetMetrics(Metrics* metrics) override; | 54 int GetMetrics(Metrics* metrics) override; |
| 52 int enable_delay_logging(bool enable) override; | 55 int enable_delay_logging(bool enable) override; |
| 53 bool is_delay_logging_enabled() const override; | |
| 54 int GetDelayMetrics(int* median, int* std) override; | 56 int GetDelayMetrics(int* median, int* std) override; |
| 55 int GetDelayMetrics(int* median, | 57 int GetDelayMetrics(int* median, |
| 56 int* std, | 58 int* std, |
| 57 float* fraction_poor_delays) override; | 59 float* fraction_poor_delays) override; |
| 58 struct AecCore* aec_core() const override; | 60 struct AecCore* aec_core() const override; |
| 59 | 61 |
| 60 // ProcessingComponent implementation. | 62 // ProcessingComponent implementation. |
| 61 void* CreateHandle() const override; | 63 void* CreateHandle() const override; |
| 62 int InitializeHandle(void* handle) const override; | 64 int InitializeHandle(void* handle) const override; |
| 63 int ConfigureHandle(void* handle) const override; | 65 int ConfigureHandle(void* handle) const override; |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 74 bool was_stream_drift_set_; | 76 bool was_stream_drift_set_; |
| 75 bool stream_has_echo_; | 77 bool stream_has_echo_; |
| 76 bool delay_logging_enabled_; | 78 bool delay_logging_enabled_; |
| 77 bool extended_filter_enabled_; | 79 bool extended_filter_enabled_; |
| 78 bool delay_agnostic_enabled_; | 80 bool delay_agnostic_enabled_; |
| 79 }; | 81 }; |
| 80 | 82 |
| 81 } // namespace webrtc | 83 } // namespace webrtc |
| 82 | 84 |
| 83 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_ECHO_CANCELLATION_IMPL_H_ | 85 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_ECHO_CANCELLATION_IMPL_H_ |
| OLD | NEW |