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

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

Issue 2433153003: New statistics interface for APM (Closed)
Patch Set: Created 4 years, 2 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 int proc_sample_rate_hz() const override; 107 int proc_sample_rate_hz() const override;
108 int proc_split_sample_rate_hz() const override; 108 int proc_split_sample_rate_hz() const override;
109 size_t num_input_channels() const override; 109 size_t num_input_channels() const override;
110 size_t num_proc_channels() const override; 110 size_t num_proc_channels() const override;
111 size_t num_output_channels() const override; 111 size_t num_output_channels() const override;
112 size_t num_reverse_channels() const override; 112 size_t num_reverse_channels() const override;
113 int stream_delay_ms() const override; 113 int stream_delay_ms() const override;
114 bool was_stream_delay_set() const override 114 bool was_stream_delay_set() const override
115 EXCLUSIVE_LOCKS_REQUIRED(crit_capture_); 115 EXCLUSIVE_LOCKS_REQUIRED(crit_capture_);
116 116
117 void SetStatisticsEnabled(bool enabled) override;
118 void GetStatistics(AudioProcessingStatistics* stats) const override;
the sun 2016/10/24 08:26:58 How about just returning this struct by value? Ret
ivoc 2016/10/24 14:15:49 Done.
119
117 // Methods returning pointers to APM submodules. 120 // Methods returning pointers to APM submodules.
118 // No locks are aquired in those, as those locks 121 // No locks are aquired in those, as those locks
119 // would offer no protection (the submodules are 122 // would offer no protection (the submodules are
120 // created only once in a single-treaded manner 123 // created only once in a single-treaded manner
121 // during APM creation). 124 // during APM creation).
122 EchoCancellation* echo_cancellation() const override; 125 EchoCancellation* echo_cancellation() const override;
123 EchoControlMobile* echo_control_mobile() const override; 126 EchoControlMobile* echo_control_mobile() const override;
124 GainControl* gain_control() const override; 127 GainControl* gain_control() const override;
125 HighPassFilter* high_pass_filter() const override; 128 HighPassFilter* high_pass_filter() const override;
126 LevelEstimator* level_estimator() const override; 129 LevelEstimator* level_estimator() const override;
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 ApmRenderState(); 363 ApmRenderState();
361 ~ApmRenderState(); 364 ~ApmRenderState();
362 std::unique_ptr<AudioConverter> render_converter; 365 std::unique_ptr<AudioConverter> render_converter;
363 std::unique_ptr<AudioBuffer> render_audio; 366 std::unique_ptr<AudioBuffer> render_audio;
364 } render_ GUARDED_BY(crit_render_); 367 } render_ GUARDED_BY(crit_render_);
365 }; 368 };
366 369
367 } // namespace webrtc 370 } // namespace webrtc
368 371
369 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AUDIO_PROCESSING_IMPL_H_ 372 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AUDIO_PROCESSING_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698