Chromium Code Reviews| Index: webrtc/modules/audio_processing/include/audio_processing.h | 
| diff --git a/webrtc/modules/audio_processing/include/audio_processing.h b/webrtc/modules/audio_processing/include/audio_processing.h | 
| index 6a8ef1b0e51e194f436557eb4e5d3f67597b45da..f68d6fa58d6a7e7443d95cf4efcdaa6caa84eb82 100644 | 
| --- a/webrtc/modules/audio_processing/include/audio_processing.h | 
| +++ b/webrtc/modules/audio_processing/include/audio_processing.h | 
| @@ -308,7 +308,7 @@ class AudioProcessing { | 
| // | 
| // TODO(mgraczyk): Remove once clients are updated to use the new interface. | 
| virtual int ProcessStream(const float* const* src, | 
| - int samples_per_channel, | 
| + size_t samples_per_channel, | 
| int input_sample_rate_hz, | 
| ChannelLayout input_layout, | 
| int output_sample_rate_hz, | 
| @@ -349,7 +349,7 @@ class AudioProcessing { | 
| // | 
| // TODO(mgraczyk): Remove once clients are updated to use the new interface. | 
| virtual int AnalyzeReverseStream(const float* const* data, | 
| - int samples_per_channel, | 
| + size_t samples_per_channel, | 
| int sample_rate_hz, | 
| ChannelLayout layout) = 0; | 
| @@ -500,7 +500,7 @@ class StreamConfig { | 
| int num_channels() const { return num_channels_; } | 
| 
 
Andrew MacDonald
2015/07/24 04:01:43
size_t
 
 | 
| bool has_keyboard() const { return has_keyboard_; } | 
| - int num_frames() const { return num_frames_; } | 
| + size_t num_frames() const { return num_frames_; } | 
| bool operator==(const StreamConfig& other) const { | 
| return sample_rate_hz_ == other.sample_rate_hz_ && | 
| @@ -511,14 +511,15 @@ class StreamConfig { | 
| bool operator!=(const StreamConfig& other) const { return !(*this == other); } | 
| private: | 
| - static int calculate_frames(int sample_rate_hz) { | 
| - return AudioProcessing::kChunkSizeMs * sample_rate_hz / 1000; | 
| + static size_t calculate_frames(int sample_rate_hz) { | 
| + return static_cast<size_t>( | 
| + AudioProcessing::kChunkSizeMs * sample_rate_hz / 1000); | 
| } | 
| int sample_rate_hz_; | 
| int num_channels_; | 
| bool has_keyboard_; | 
| - int num_frames_; | 
| + size_t num_frames_; | 
| }; | 
| class ProcessingConfig { |