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

Side by Side Diff: webrtc/modules/audio_processing/intelligibility/intelligibility_enhancer.cc

Issue 1685293002: Fix IntelligibilityEnhancerTest.TestRenderUpdate test (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 10 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 | no next file » | 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) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 sample_rate_hz_(config.sample_rate_hz), 97 sample_rate_hz_(config.sample_rate_hz),
98 erb_resolution_(kErbResolution), 98 erb_resolution_(kErbResolution),
99 num_capture_channels_(config.num_capture_channels), 99 num_capture_channels_(config.num_capture_channels),
100 num_render_channels_(config.num_render_channels), 100 num_render_channels_(config.num_render_channels),
101 analysis_rate_(config.analysis_rate), 101 analysis_rate_(config.analysis_rate),
102 active_(true), 102 active_(true),
103 clear_variance_(freqs_, 103 clear_variance_(freqs_,
104 config.var_type, 104 config.var_type,
105 config.var_window_size, 105 config.var_window_size,
106 config.var_decay_rate), 106 config.var_decay_rate),
107 noise_power_(freqs_, 0.f),
107 filtered_clear_var_(new float[bank_size_]), 108 filtered_clear_var_(new float[bank_size_]),
108 filtered_noise_var_(new float[bank_size_]), 109 filtered_noise_var_(new float[bank_size_]),
109 center_freqs_(new float[bank_size_]), 110 center_freqs_(new float[bank_size_]),
110 render_filter_bank_(CreateErbBank(freqs_)), 111 render_filter_bank_(CreateErbBank(freqs_)),
111 rho_(new float[bank_size_]), 112 rho_(new float[bank_size_]),
112 gains_eq_(new float[bank_size_]), 113 gains_eq_(new float[bank_size_]),
113 gain_applier_(freqs_, config.gain_change_limit), 114 gain_applier_(freqs_, config.gain_change_limit),
114 temp_render_out_buffer_(chunk_length_, num_render_channels_), 115 temp_render_out_buffer_(chunk_length_, num_render_channels_),
115 kbd_window_(new float[window_size_]), 116 kbd_window_(new float[window_size_]),
116 render_callback_(this), 117 render_callback_(this),
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 } 363 }
363 sols[n] = fmax(0, sols[n]); 364 sols[n] = fmax(0, sols[n]);
364 } 365 }
365 } 366 }
366 367
367 bool IntelligibilityEnhancer::active() const { 368 bool IntelligibilityEnhancer::active() const {
368 return active_; 369 return active_;
369 } 370 }
370 371
371 } // namespace webrtc 372 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698