Index: webrtc/modules/audio_processing/gain_control_impl.cc |
diff --git a/webrtc/modules/audio_processing/gain_control_impl.cc b/webrtc/modules/audio_processing/gain_control_impl.cc |
index 8a3612dce5a7b7ea9c2b5a6c128329a3168b2da9..9a656c2c43f35026a95be3e024a454edbdc2f9c8 100644 |
--- a/webrtc/modules/audio_processing/gain_control_impl.cc |
+++ b/webrtc/modules/audio_processing/gain_control_impl.cc |
@@ -59,7 +59,7 @@ int GainControlImpl::ProcessRenderAudio(AudioBuffer* audio) { |
assert(audio->num_frames_per_band() <= 160); |
- for (int i = 0; i < num_handles(); i++) { |
+ for (size_t i = 0; i < num_handles(); i++) { |
Handle* my_handle = static_cast<Handle*>(handle(i)); |
int err = WebRtcAgc_AddFarend( |
my_handle, |
@@ -86,7 +86,7 @@ int GainControlImpl::AnalyzeCaptureAudio(AudioBuffer* audio) { |
if (mode_ == kAdaptiveAnalog) { |
capture_levels_.assign(num_handles(), analog_capture_level_); |
- for (int i = 0; i < num_handles(); i++) { |
+ for (size_t i = 0; i < num_handles(); i++) { |
Handle* my_handle = static_cast<Handle*>(handle(i)); |
err = WebRtcAgc_AddMic( |
my_handle, |
@@ -100,7 +100,7 @@ int GainControlImpl::AnalyzeCaptureAudio(AudioBuffer* audio) { |
} |
} else if (mode_ == kAdaptiveDigital) { |
- for (int i = 0; i < num_handles(); i++) { |
+ for (size_t i = 0; i < num_handles(); i++) { |
Handle* my_handle = static_cast<Handle*>(handle(i)); |
int32_t capture_level_out = 0; |
@@ -137,7 +137,7 @@ int GainControlImpl::ProcessCaptureAudio(AudioBuffer* audio) { |
assert(audio->num_channels() == num_handles()); |
stream_is_saturated_ = false; |
- for (int i = 0; i < num_handles(); i++) { |
+ for (size_t i = 0; i < num_handles(); i++) { |
Handle* my_handle = static_cast<Handle*>(handle(i)); |
int32_t capture_level_out = 0; |
uint8_t saturation_warning = 0; |
@@ -166,7 +166,7 @@ int GainControlImpl::ProcessCaptureAudio(AudioBuffer* audio) { |
if (mode_ == kAdaptiveAnalog) { |
// Take the analog level to be the average across the handles. |
analog_capture_level_ = 0; |
- for (int i = 0; i < num_handles(); i++) { |
+ for (size_t i = 0; i < num_handles(); i++) { |
analog_capture_level_ += capture_levels_[i]; |
} |
@@ -330,7 +330,7 @@ int GainControlImpl::ConfigureHandle(void* handle) const { |
return WebRtcAgc_set_config(static_cast<Handle*>(handle), config); |
} |
-int GainControlImpl::num_handles_required() const { |
+size_t GainControlImpl::num_handles_required() const { |
return apm_->num_output_channels(); |
} |