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

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

Issue 1213733004: Adds UMA histogram for system delay jumps (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: includes base/checks.h Created 5 years, 5 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
« no previous file with comments | « no previous file | webrtc/modules/audio_processing/audio_processing_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 int ProcessStreamLocked() EXCLUSIVE_LOCKS_REQUIRED(crit_); 164 int ProcessStreamLocked() EXCLUSIVE_LOCKS_REQUIRED(crit_);
165 int AnalyzeReverseStreamLocked() EXCLUSIVE_LOCKS_REQUIRED(crit_); 165 int AnalyzeReverseStreamLocked() EXCLUSIVE_LOCKS_REQUIRED(crit_);
166 166
167 bool is_data_processed() const; 167 bool is_data_processed() const;
168 bool output_copy_needed(bool is_data_processed) const; 168 bool output_copy_needed(bool is_data_processed) const;
169 bool synthesis_needed(bool is_data_processed) const; 169 bool synthesis_needed(bool is_data_processed) const;
170 bool analysis_needed(bool is_data_processed) const; 170 bool analysis_needed(bool is_data_processed) const;
171 void InitializeExperimentalAgc() EXCLUSIVE_LOCKS_REQUIRED(crit_); 171 void InitializeExperimentalAgc() EXCLUSIVE_LOCKS_REQUIRED(crit_);
172 void InitializeTransient() EXCLUSIVE_LOCKS_REQUIRED(crit_); 172 void InitializeTransient() EXCLUSIVE_LOCKS_REQUIRED(crit_);
173 void InitializeBeamformer() EXCLUSIVE_LOCKS_REQUIRED(crit_); 173 void InitializeBeamformer() EXCLUSIVE_LOCKS_REQUIRED(crit_);
174 void MaybeUpdateHistograms() EXCLUSIVE_LOCKS_REQUIRED(crit_);
174 175
175 EchoCancellationImpl* echo_cancellation_; 176 EchoCancellationImpl* echo_cancellation_;
176 EchoControlMobileImpl* echo_control_mobile_; 177 EchoControlMobileImpl* echo_control_mobile_;
177 GainControlImpl* gain_control_; 178 GainControlImpl* gain_control_;
178 HighPassFilterImpl* high_pass_filter_; 179 HighPassFilterImpl* high_pass_filter_;
179 LevelEstimatorImpl* level_estimator_; 180 LevelEstimatorImpl* level_estimator_;
180 NoiseSuppressionImpl* noise_suppression_; 181 NoiseSuppressionImpl* noise_suppression_;
181 VoiceDetectionImpl* voice_detection_; 182 VoiceDetectionImpl* voice_detection_;
182 rtc::scoped_ptr<GainControlForNewAgc> gain_control_for_new_agc_; 183 rtc::scoped_ptr<GainControlForNewAgc> gain_control_for_new_agc_;
183 184
(...skipping 16 matching lines...) Expand all
200 // is mutable and is tracked by the capture_audio_. 201 // is mutable and is tracked by the capture_audio_.
201 AudioRate fwd_proc_format_; 202 AudioRate fwd_proc_format_;
202 AudioFormat fwd_out_format_; 203 AudioFormat fwd_out_format_;
203 AudioFormat rev_in_format_; 204 AudioFormat rev_in_format_;
204 AudioFormat rev_proc_format_; 205 AudioFormat rev_proc_format_;
205 int split_rate_; 206 int split_rate_;
206 207
207 int stream_delay_ms_; 208 int stream_delay_ms_;
208 int delay_offset_ms_; 209 int delay_offset_ms_;
209 bool was_stream_delay_set_; 210 bool was_stream_delay_set_;
211 int last_stream_delay_ms_;
212 int last_aec_system_delay_ms_;
210 213
211 bool output_will_be_muted_ GUARDED_BY(crit_); 214 bool output_will_be_muted_ GUARDED_BY(crit_);
212 215
213 bool key_pressed_; 216 bool key_pressed_;
214 217
215 // Only set through the constructor's Config parameter. 218 // Only set through the constructor's Config parameter.
216 const bool use_new_agc_; 219 const bool use_new_agc_;
217 rtc::scoped_ptr<AgcManagerDirect> agc_manager_ GUARDED_BY(crit_); 220 rtc::scoped_ptr<AgcManagerDirect> agc_manager_ GUARDED_BY(crit_);
218 int agc_startup_min_volume_; 221 int agc_startup_min_volume_;
219 222
220 bool transient_suppressor_enabled_; 223 bool transient_suppressor_enabled_;
221 rtc::scoped_ptr<TransientSuppressor> transient_suppressor_; 224 rtc::scoped_ptr<TransientSuppressor> transient_suppressor_;
222 const bool beamformer_enabled_; 225 const bool beamformer_enabled_;
223 rtc::scoped_ptr<Beamformer<float>> beamformer_; 226 rtc::scoped_ptr<Beamformer<float>> beamformer_;
224 const std::vector<Point> array_geometry_; 227 const std::vector<Point> array_geometry_;
225 228
226 const bool supports_48kHz_; 229 const bool supports_48kHz_;
227 }; 230 };
228 231
229 } // namespace webrtc 232 } // namespace webrtc
230 233
231 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AUDIO_PROCESSING_IMPL_H_ 234 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AUDIO_PROCESSING_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/audio_processing/audio_processing_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698