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

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

Issue 1859243002: Added a query function for whether submodules are enabled (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: "Rebase with latest master" Created 4 years, 8 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
46 // Reads render side data that has been queued on the render call. 51 // Reads render side data that has been queued on the render call.
47 void ReadQueuedRenderData(); 52 void ReadQueuedRenderData();
48 53
49 private: 54 private:
50 class Canceller; 55 class Canceller;
51 struct StreamProperties; 56 struct StreamProperties;
52 57
53 // EchoControlMobile implementation. 58 // EchoControlMobile implementation.
54 int Enable(bool enable) override; 59 int Enable(bool enable) override;
55 int set_routing_mode(RoutingMode mode) override; 60 int set_routing_mode(RoutingMode mode) override;
(...skipping 28 matching lines...) Expand all
84 render_signal_queue_; 89 render_signal_queue_;
85 90
86 std::vector<std::unique_ptr<Canceller>> cancellers_; 91 std::vector<std::unique_ptr<Canceller>> cancellers_;
87 std::unique_ptr<StreamProperties> stream_properties_; 92 std::unique_ptr<StreamProperties> stream_properties_;
88 93
89 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(EchoControlMobileImpl); 94 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(EchoControlMobileImpl);
90 }; 95 };
91 } // namespace webrtc 96 } // namespace webrtc
92 97
93 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_ECHO_CONTROL_MOBILE_IMPL_H_ 98 #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