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

Unified Diff: webrtc/modules/audio_processing/intelligibility/intelligibility_enhancer.cc

Issue 1335923002: Add RTC_ prefix to (D)CHECKs and related macros. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase. Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_processing/intelligibility/intelligibility_enhancer.cc
diff --git a/webrtc/modules/audio_processing/intelligibility/intelligibility_enhancer.cc b/webrtc/modules/audio_processing/intelligibility/intelligibility_enhancer.cc
index 33ff5cda8712f3bdce60a45205f120447bb534ce..d014ce060c41c576b986051355a9812ec25fd343 100644
--- a/webrtc/modules/audio_processing/intelligibility/intelligibility_enhancer.cc
+++ b/webrtc/modules/audio_processing/intelligibility/intelligibility_enhancer.cc
@@ -58,7 +58,7 @@ void IntelligibilityEnhancer::TransformCallback::ProcessAudioBlock(
size_t frames,
int /* out_channels */,
complex<float>* const* out_block) {
- DCHECK_EQ(parent_->freqs_, frames);
+ RTC_DCHECK_EQ(parent_->freqs_, frames);
for (int i = 0; i < in_channels; ++i) {
parent_->DispatchAudio(source_, in_block[i], out_block[i]);
}
@@ -103,7 +103,7 @@ IntelligibilityEnhancer::IntelligibilityEnhancer(const Config& config)
capture_callback_(this, AudioSource::kCaptureStream),
block_count_(0),
analysis_step_(0) {
- DCHECK_LE(config.rho, 1.0f);
+ RTC_DCHECK_LE(config.rho, 1.0f);
CreateErbBank();
@@ -130,8 +130,8 @@ IntelligibilityEnhancer::IntelligibilityEnhancer(const Config& config)
void IntelligibilityEnhancer::ProcessRenderAudio(float* const* audio,
int sample_rate_hz,
int num_channels) {
- CHECK_EQ(sample_rate_hz_, sample_rate_hz);
- CHECK_EQ(num_render_channels_, num_channels);
+ RTC_CHECK_EQ(sample_rate_hz_, sample_rate_hz);
+ RTC_CHECK_EQ(num_render_channels_, num_channels);
if (active_) {
render_mangler_->ProcessChunk(audio, temp_render_out_buffer_.channels());
@@ -148,8 +148,8 @@ void IntelligibilityEnhancer::ProcessRenderAudio(float* const* audio,
void IntelligibilityEnhancer::AnalyzeCaptureAudio(float* const* audio,
int sample_rate_hz,
int num_channels) {
- CHECK_EQ(sample_rate_hz_, sample_rate_hz);
- CHECK_EQ(num_capture_channels_, num_channels);
+ RTC_CHECK_EQ(sample_rate_hz_, sample_rate_hz);
+ RTC_CHECK_EQ(num_capture_channels_, num_channels);
capture_mangler_->ProcessChunk(audio, temp_capture_out_buffer_.channels());
}
@@ -357,7 +357,7 @@ void IntelligibilityEnhancer::SolveForGainsGivenLambda(float lambda,
}
void IntelligibilityEnhancer::FilterVariance(const float* var, float* result) {
- DCHECK_GT(freqs_, 0u);
+ RTC_DCHECK_GT(freqs_, 0u);
for (size_t i = 0; i < bank_size_; ++i) {
result[i] = DotProduct(&filter_bank_[i][0], var, freqs_);
}

Powered by Google App Engine
This is Rietveld 408576698