diff options
Diffstat (limited to 'media/audio')
-rw-r--r-- | media/audio/android/audio_manager_android.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/media/audio/android/audio_manager_android.cc b/media/audio/android/audio_manager_android.cc index ca4bc53..69bd2b8 100644 --- a/media/audio/android/audio_manager_android.cc +++ b/media/audio/android/audio_manager_android.cc @@ -147,7 +147,8 @@ AudioParameters AudioManagerAndroid::GetPreferredOutputStreamParameters( bits_per_sample = input_params.bits_per_sample(); channel_layout = input_params.channel_layout(); input_channels = input_params.input_channels(); - buffer_size = GetOptimalOutputFrameSize(sample_rate, channel_layout); + buffer_size = GetOptimalOutputFrameSize( + sample_rate, ChannelLayoutToChannelCount(channel_layout)); } int user_buffer_size = GetUserBufferSize(); |