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

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

Issue 1227213002: Update audio code to use size_t more correctly, webrtc/modules/audio_processing/ (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Resync Created 5 years, 5 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
« no previous file with comments | « webrtc/modules/audio_processing/rms_level.h ('k') | webrtc/modules/audio_processing/splitting_filter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_processing/rms_level.cc
diff --git a/webrtc/modules/audio_processing/rms_level.cc b/webrtc/modules/audio_processing/rms_level.cc
index 14136bf30495dda86c9240b5b8ab03b6e33c4e40..70c4422d34bae2c5f9542162da6b2d98a65f01de 100644
--- a/webrtc/modules/audio_processing/rms_level.cc
+++ b/webrtc/modules/audio_processing/rms_level.cc
@@ -28,14 +28,14 @@ void RMSLevel::Reset() {
sample_count_ = 0;
}
-void RMSLevel::Process(const int16_t* data, int length) {
- for (int i = 0; i < length; ++i) {
+void RMSLevel::Process(const int16_t* data, size_t length) {
+ for (size_t i = 0; i < length; ++i) {
sum_square_ += data[i] * data[i];
}
sample_count_ += length;
}
-void RMSLevel::ProcessMuted(int length) {
+void RMSLevel::ProcessMuted(size_t length) {
sample_count_ += length;
}
« no previous file with comments | « webrtc/modules/audio_processing/rms_level.h ('k') | webrtc/modules/audio_processing/splitting_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698