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

Side by Side Diff: webrtc/modules/audio_processing/noise_suppression_impl.cc

Issue 2535593002: RTC_[D]CHECK_op: Remove "u" suffix on integer constants (Closed)
Patch Set: Created 4 years 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 } 69 }
70 70
71 void NoiseSuppressionImpl::AnalyzeCaptureAudio(AudioBuffer* audio) { 71 void NoiseSuppressionImpl::AnalyzeCaptureAudio(AudioBuffer* audio) {
72 RTC_DCHECK(audio); 72 RTC_DCHECK(audio);
73 #if defined(WEBRTC_NS_FLOAT) 73 #if defined(WEBRTC_NS_FLOAT)
74 rtc::CritScope cs(crit_); 74 rtc::CritScope cs(crit_);
75 if (!enabled_) { 75 if (!enabled_) {
76 return; 76 return;
77 } 77 }
78 78
79 RTC_DCHECK_GE(160u, audio->num_frames_per_band()); 79 RTC_DCHECK_GE(160, audio->num_frames_per_band());
80 RTC_DCHECK_EQ(suppressors_.size(), audio->num_channels()); 80 RTC_DCHECK_EQ(suppressors_.size(), audio->num_channels());
81 for (size_t i = 0; i < suppressors_.size(); i++) { 81 for (size_t i = 0; i < suppressors_.size(); i++) {
82 WebRtcNs_Analyze(suppressors_[i]->state(), 82 WebRtcNs_Analyze(suppressors_[i]->state(),
83 audio->split_bands_const_f(i)[kBand0To8kHz]); 83 audio->split_bands_const_f(i)[kBand0To8kHz]);
84 } 84 }
85 #endif 85 #endif
86 } 86 }
87 87
88 void NoiseSuppressionImpl::ProcessCaptureAudio(AudioBuffer* audio) { 88 void NoiseSuppressionImpl::ProcessCaptureAudio(AudioBuffer* audio) {
89 RTC_DCHECK(audio); 89 RTC_DCHECK(audio);
90 rtc::CritScope cs(crit_); 90 rtc::CritScope cs(crit_);
91 if (!enabled_) { 91 if (!enabled_) {
92 return; 92 return;
93 } 93 }
94 94
95 RTC_DCHECK_GE(160u, audio->num_frames_per_band()); 95 RTC_DCHECK_GE(160, audio->num_frames_per_band());
96 RTC_DCHECK_EQ(suppressors_.size(), audio->num_channels()); 96 RTC_DCHECK_EQ(suppressors_.size(), audio->num_channels());
97 for (size_t i = 0; i < suppressors_.size(); i++) { 97 for (size_t i = 0; i < suppressors_.size(); i++) {
98 #if defined(WEBRTC_NS_FLOAT) 98 #if defined(WEBRTC_NS_FLOAT)
99 WebRtcNs_Process(suppressors_[i]->state(), 99 WebRtcNs_Process(suppressors_[i]->state(),
100 audio->split_bands_const_f(i), 100 audio->split_bands_const_f(i),
101 audio->num_bands(), 101 audio->num_bands(),
102 audio->split_bands_f(i)); 102 audio->split_bands_f(i));
103 #elif defined(WEBRTC_NS_FIXED) 103 #elif defined(WEBRTC_NS_FIXED)
104 WebRtcNsx_Process(suppressors_[i]->state(), 104 WebRtcNsx_Process(suppressors_[i]->state(),
105 audio->split_bands_const(i), 105 audio->split_bands_const(i),
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 204
205 size_t NoiseSuppressionImpl::num_noise_bins() { 205 size_t NoiseSuppressionImpl::num_noise_bins() {
206 #if defined(WEBRTC_NS_FLOAT) 206 #if defined(WEBRTC_NS_FLOAT)
207 return WebRtcNs_num_freq(); 207 return WebRtcNs_num_freq();
208 #elif defined(WEBRTC_NS_FIXED) 208 #elif defined(WEBRTC_NS_FIXED)
209 return WebRtcNsx_num_freq(); 209 return WebRtcNsx_num_freq();
210 #endif 210 #endif
211 } 211 }
212 212
213 } // namespace webrtc 213 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/low_cut_filter.cc ('k') | webrtc/modules/audio_processing/residual_echo_detector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698