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

Unified Diff: webrtc/modules/audio_processing/gain_control_impl.cc

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/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 398cf5c5fd71ead8c17d91c9e68de88ee1730c5e..8a3612dce5a7b7ea9c2b5a6c128329a3168b2da9 100644
--- a/webrtc/modules/audio_processing/gain_control_impl.cc
+++ b/webrtc/modules/audio_processing/gain_control_impl.cc
@@ -64,7 +64,7 @@ int GainControlImpl::ProcessRenderAudio(AudioBuffer* audio) {
int err = WebRtcAgc_AddFarend(
my_handle,
audio->mixed_low_pass_data(),
- static_cast<int16_t>(audio->num_frames_per_band()));
+ audio->num_frames_per_band());
if (err != apm_->kNoError) {
return GetHandleError(my_handle);
@@ -92,7 +92,7 @@ int GainControlImpl::AnalyzeCaptureAudio(AudioBuffer* audio) {
my_handle,
audio->split_bands(i),
audio->num_bands(),
- static_cast<int16_t>(audio->num_frames_per_band()));
+ audio->num_frames_per_band());
if (err != apm_->kNoError) {
return GetHandleError(my_handle);
@@ -108,7 +108,7 @@ int GainControlImpl::AnalyzeCaptureAudio(AudioBuffer* audio) {
my_handle,
audio->split_bands(i),
audio->num_bands(),
- static_cast<int16_t>(audio->num_frames_per_band()),
+ audio->num_frames_per_band(),
analog_capture_level_,
&capture_level_out);
@@ -146,7 +146,7 @@ int GainControlImpl::ProcessCaptureAudio(AudioBuffer* audio) {
my_handle,
audio->split_bands_const(i),
audio->num_bands(),
- static_cast<int16_t>(audio->num_frames_per_band()),
+ audio->num_frames_per_band(),
audio->split_bands(i),
capture_levels_[i],
&capture_level_out,
« no previous file with comments | « webrtc/modules/audio_processing/echo_control_mobile_impl.cc ('k') | webrtc/modules/audio_processing/high_pass_filter_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698