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

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

Issue 2304123002: Cleaned up and revised the handling of resampling and bandsplitting in APM and (Closed)
Patch Set: Updated the test that required that no initialization should be done if APM is called with the defa… Created 4 years, 3 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 25 matching lines...) Expand all
36 36
37 // EchoControlMobile implementation. 37 // EchoControlMobile implementation.
38 bool is_enabled() const override; 38 bool is_enabled() const override;
39 RoutingMode routing_mode() const override; 39 RoutingMode routing_mode() const override;
40 bool is_comfort_noise_enabled() const override; 40 bool is_comfort_noise_enabled() const override;
41 41
42 void Initialize(int sample_rate_hz, 42 void Initialize(int sample_rate_hz,
43 size_t num_reverse_channels, 43 size_t num_reverse_channels,
44 size_t num_output_channels); 44 size_t num_output_channels);
45 45
46 // Checks whether the module is enabled. Must only be
47 // called from the render side of APM as otherwise
48 // deadlocks may occur.
49 bool is_enabled_render_side_query() const;
50
51 // Reads render side data that has been queued on the render call. 46 // Reads render side data that has been queued on the render call.
52 void ReadQueuedRenderData(); 47 void ReadQueuedRenderData();
53 48
54 private: 49 private:
55 class Canceller; 50 class Canceller;
56 struct StreamProperties; 51 struct StreamProperties;
57 52
58 // EchoControlMobile implementation. 53 // EchoControlMobile implementation.
59 int Enable(bool enable) override; 54 int Enable(bool enable) override;
60 int set_routing_mode(RoutingMode mode) override; 55 int set_routing_mode(RoutingMode mode) override;
(...skipping 28 matching lines...) Expand all
89 render_signal_queue_; 84 render_signal_queue_;
90 85
91 std::vector<std::unique_ptr<Canceller>> cancellers_; 86 std::vector<std::unique_ptr<Canceller>> cancellers_;
92 std::unique_ptr<StreamProperties> stream_properties_; 87 std::unique_ptr<StreamProperties> stream_properties_;
93 88
94 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(EchoControlMobileImpl); 89 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(EchoControlMobileImpl);
95 }; 90 };
96 } // namespace webrtc 91 } // namespace webrtc
97 92
98 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_ECHO_CONTROL_MOBILE_IMPL_H_ 93 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_ECHO_CONTROL_MOBILE_IMPL_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/echo_cancellation_impl.cc ('k') | webrtc/modules/audio_processing/echo_control_mobile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698