Index: webrtc/modules/audio_device/ios/audio_device_ios.mm |
diff --git a/webrtc/modules/audio_device/ios/audio_device_ios.mm b/webrtc/modules/audio_device/ios/audio_device_ios.mm |
index 09419f2bda9205f82124943b11ee5fd9678d0412..6f610d7afcc7758fddeccd01e4434b0b391dde4f 100644 |
--- a/webrtc/modules/audio_device/ios/audio_device_ios.mm |
+++ b/webrtc/modules/audio_device/ios/audio_device_ios.mm |
@@ -86,8 +86,8 @@ static void GetHardwareAudioParameters(AudioParameters* playout_parameters, |
double io_buffer_duration = (double)session.IOBufferDuration; |
int output_channels = (int)session.outputNumberOfChannels; |
int input_channels = (int)session.inputNumberOfChannels; |
- int frames_per_buffer = |
- static_cast<int>(sample_rate * io_buffer_duration + 0.5); |
+ size_t frames_per_buffer = |
+ static_cast<size_t>(sample_rate * io_buffer_duration + 0.5); |
// Copy hardware parameters to output parameters. |
playout_parameters->reset(sample_rate, output_channels, frames_per_buffer); |
record_parameters->reset(sample_rate, input_channels, frames_per_buffer); |