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

Unified Diff: webrtc/modules/audio_processing/beamformer/covariance_matrix_generator.h

Issue 1230503003: Update a ton of audio code to use size_t more correctly and in general reduce (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Resync Created 5 years, 4 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/beamformer/covariance_matrix_generator.h
diff --git a/webrtc/modules/audio_processing/beamformer/covariance_matrix_generator.h b/webrtc/modules/audio_processing/beamformer/covariance_matrix_generator.h
index 5979462751bf9e5734255982a8900857f38907cf..5375518e8aabe3ace865667950aff6b2c332859d 100644
--- a/webrtc/modules/audio_processing/beamformer/covariance_matrix_generator.h
+++ b/webrtc/modules/audio_processing/beamformer/covariance_matrix_generator.h
@@ -30,9 +30,9 @@ class CovarianceMatrixGenerator {
// The covariance matrix of a source at the given angle.
static void AngledCovarianceMatrix(float sound_speed,
float angle,
- int frequency_bin,
- int fft_size,
- int num_freq_bins,
+ size_t frequency_bin,
+ size_t fft_size,
+ size_t num_freq_bins,
int sample_rate,
const std::vector<Point>& geometry,
ComplexMatrix<float>* mat);
@@ -40,8 +40,8 @@ class CovarianceMatrixGenerator {
// Calculates phase shifts that, when applied to a multichannel signal and
// added together, cause constructive interferernce for sources located at
// the given angle.
- static void PhaseAlignmentMasks(int frequency_bin,
- int fft_size,
+ static void PhaseAlignmentMasks(size_t frequency_bin,
+ size_t fft_size,
int sample_rate,
float sound_speed,
const std::vector<Point>& geometry,

Powered by Google App Engine
This is Rietveld 408576698