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

Unified Diff: webrtc/modules/audio_conference_mixer/source/level_indicator.cc

Issue 1224123002: Update audio code to use size_t more correctly, webrtc/modules/ portion. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: 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
Index: webrtc/modules/audio_conference_mixer/source/level_indicator.cc
diff --git a/webrtc/modules/audio_conference_mixer/source/level_indicator.cc b/webrtc/modules/audio_conference_mixer/source/level_indicator.cc
index 3c573d41aeeb713461cb5be0a5ec9f6a42519404..67c5bce29b9bfc99bac55228d39cc029aaa6b11b 100644
--- a/webrtc/modules/audio_conference_mixer/source/level_indicator.cc
+++ b/webrtc/modules/audio_conference_mixer/source/level_indicator.cc
@@ -28,10 +28,10 @@ LevelIndicator::~LevelIndicator()
// Level is based on the highest absolute value for all samples.
void LevelIndicator::ComputeLevel(const int16_t* speech,
- const uint16_t nrOfSamples)
+ const size_t nrOfSamples)
{
int32_t min = 0;
- for(uint32_t i = 0; i < nrOfSamples; i++)
+ for(size_t i = 0; i < nrOfSamples; i++)
{
if(_max < speech[i])
{
« no previous file with comments | « webrtc/modules/audio_conference_mixer/source/level_indicator.h ('k') | webrtc/modules/interface/module_common_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698