Index: webrtc/modules/audio_processing/beamformer/covariance_matrix_generator.cc |
diff --git a/webrtc/modules/audio_processing/beamformer/covariance_matrix_generator.cc b/webrtc/modules/audio_processing/beamformer/covariance_matrix_generator.cc |
index ed81247aae37159cf3e60fe0b0db90607f64dca2..efc5b0f71afd5b04782bd238e26bc78784d38da0 100644 |
--- a/webrtc/modules/audio_processing/beamformer/covariance_matrix_generator.cc |
+++ b/webrtc/modules/audio_processing/beamformer/covariance_matrix_generator.cc |
@@ -32,8 +32,8 @@ void CovarianceMatrixGenerator::UniformCovarianceMatrix( |
float wave_number, |
const std::vector<Point>& geometry, |
ComplexMatrix<float>* mat) { |
- CHECK_EQ(static_cast<int>(geometry.size()), mat->num_rows()); |
- CHECK_EQ(static_cast<int>(geometry.size()), mat->num_columns()); |
+ RTC_CHECK_EQ(static_cast<int>(geometry.size()), mat->num_rows()); |
+ RTC_CHECK_EQ(static_cast<int>(geometry.size()), mat->num_columns()); |
complex<float>* const* mat_els = mat->elements(); |
for (size_t i = 0; i < geometry.size(); ++i) { |
@@ -57,8 +57,8 @@ void CovarianceMatrixGenerator::AngledCovarianceMatrix( |
int sample_rate, |
const std::vector<Point>& geometry, |
ComplexMatrix<float>* mat) { |
- CHECK_EQ(static_cast<int>(geometry.size()), mat->num_rows()); |
- CHECK_EQ(static_cast<int>(geometry.size()), mat->num_columns()); |
+ RTC_CHECK_EQ(static_cast<int>(geometry.size()), mat->num_rows()); |
+ RTC_CHECK_EQ(static_cast<int>(geometry.size()), mat->num_columns()); |
ComplexMatrix<float> interf_cov_vector(1, geometry.size()); |
ComplexMatrix<float> interf_cov_vector_transposed(geometry.size(), 1); |
@@ -82,8 +82,8 @@ void CovarianceMatrixGenerator::PhaseAlignmentMasks( |
const std::vector<Point>& geometry, |
float angle, |
ComplexMatrix<float>* mat) { |
- CHECK_EQ(1, mat->num_rows()); |
- CHECK_EQ(static_cast<int>(geometry.size()), mat->num_columns()); |
+ RTC_CHECK_EQ(1, mat->num_rows()); |
+ RTC_CHECK_EQ(static_cast<int>(geometry.size()), mat->num_columns()); |
float freq_in_hertz = |
(static_cast<float>(frequency_bin) / fft_size) * sample_rate; |