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 085484466c3e3d1e1730b7d9c678224410ca44c5..025a152ae67412598d0f8c12576e056fc1ed7db3 100644 |
--- a/webrtc/modules/audio_processing/include/audio_processing.h |
+++ b/webrtc/modules/audio_processing/include/audio_processing.h |
@@ -299,7 +299,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, |
@@ -340,7 +340,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; |
@@ -491,7 +491,7 @@ class StreamConfig { |
int num_channels() const { return num_channels_; } |
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_ && |
@@ -502,14 +502,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 { |