Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(285)

Side by Side Diff: webrtc/modules/audio_processing/echo_cancellation_impl.h

Issue 1695743004: Removing the use of the soon-to-be-removed echo_cancellation_impl (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Added DCHECKS Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 30 matching lines...) Expand all
41 // ProcessingComponent implementation. 41 // ProcessingComponent implementation.
42 int Initialize() override; 42 int Initialize() override;
43 void SetExtraOptions(const Config& config) override; 43 void SetExtraOptions(const Config& config) override;
44 bool is_delay_agnostic_enabled() const; 44 bool is_delay_agnostic_enabled() const;
45 bool is_extended_filter_enabled() const; 45 bool is_extended_filter_enabled() const;
46 46
47 // Reads render side data that has been queued on the render call. 47 // Reads render side data that has been queued on the render call.
48 // Called holding the capture lock. 48 // Called holding the capture lock.
49 void ReadQueuedRenderData(); 49 void ReadQueuedRenderData();
50 50
51 // Returns the system delay of the first AEC component.
52 int GetSystemDelayInSamples() const;
53
51 private: 54 private:
52 // EchoCancellation implementation. 55 // EchoCancellation implementation.
53 int Enable(bool enable) override; 56 int Enable(bool enable) override;
54 int enable_drift_compensation(bool enable) override; 57 int enable_drift_compensation(bool enable) override;
55 void set_stream_drift_samples(int drift) override; 58 void set_stream_drift_samples(int drift) override;
56 int set_suppression_level(SuppressionLevel level) override; 59 int set_suppression_level(SuppressionLevel level) override;
57 int enable_metrics(bool enable) override; 60 int enable_metrics(bool enable) override;
58 bool are_metrics_enabled() const override; 61 bool are_metrics_enabled() const override;
59 bool stream_has_echo() const override; 62 bool stream_has_echo() const override;
60 int GetMetrics(Metrics* metrics) override; 63 int GetMetrics(Metrics* metrics) override;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 std::vector<float> capture_queue_buffer_ GUARDED_BY(crit_capture_); 102 std::vector<float> capture_queue_buffer_ GUARDED_BY(crit_capture_);
100 103
101 // Lock protection not needed. 104 // Lock protection not needed.
102 rtc::scoped_ptr<SwapQueue<std::vector<float>, RenderQueueItemVerifier<float>>> 105 rtc::scoped_ptr<SwapQueue<std::vector<float>, RenderQueueItemVerifier<float>>>
103 render_signal_queue_; 106 render_signal_queue_;
104 }; 107 };
105 108
106 } // namespace webrtc 109 } // namespace webrtc
107 110
108 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_ECHO_CANCELLATION_IMPL_H_ 111 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_ECHO_CANCELLATION_IMPL_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/audio_processing_impl.cc ('k') | webrtc/modules/audio_processing/echo_cancellation_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698