summaryrefslogtreecommitdiffstats
path: root/media/audio
diff options
context:
space:
mode:
authorrtoy@google.com <rtoy@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-26 18:01:00 +0000
committerrtoy@google.com <rtoy@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-26 18:01:00 +0000
commit5f11a2d654cb3e8bffad2f710145d74def829b4d (patch)
treee86bc3c536f96d38c95199f6f807cbe19a241fcb /media/audio
parent1211703c74f7ab09e8c4fd9f17e9444bc32c16d5 (diff)
downloadchromium_src-5f11a2d654cb3e8bffad2f710145d74def829b4d.zip
chromium_src-5f11a2d654cb3e8bffad2f710145d74def829b4d.tar.gz
chromium_src-5f11a2d654cb3e8bffad2f710145d74def829b4d.tar.bz2
Convert channel layout to channel count for optimal frame size.
BUG=249960 Review URL: https://chromiumcodereview.appspot.com/17759003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208728 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/audio')
-rw-r--r--media/audio/android/audio_manager_android.cc3
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();