diff options
| author | Glenn Kasten <gkasten@google.com> | 2012-07-02 12:42:44 -0700 |
|---|---|---|
| committer | Glenn Kasten <gkasten@google.com> | 2012-07-03 10:24:45 -0700 |
| commit | dd8104cc5367262f0e5f13df4e79f131e8d560bb (patch) | |
| tree | 46c95f24576ec352d7d5d363606db9a46a44e9c3 /media/libstagefright | |
| parent | f1da96d8cf60842538e00a9c950cc451f7da2c10 (diff) | |
| download | frameworks_av-dd8104cc5367262f0e5f13df4e79f131e8d560bb.zip frameworks_av-dd8104cc5367262f0e5f13df4e79f131e8d560bb.tar.gz frameworks_av-dd8104cc5367262f0e5f13df4e79f131e8d560bb.tar.bz2 | |
Use audio_channel_mask_t more consistently
In IAudioFlinger::createTrack() and IAudioFlinger::openRecord(),
declare input parameter to use correct type audio_channel_mask_t.
In IAudioFlinger::getInputBufferSize(), input parameter is now channel mask
instead of channel count.
Remove unused IAudioFlinger::channelCount(audio_io_handle_t).
In AudioRecord::getMinFrameCount() and AudioSystem::getInputBufferSize(),
input parameter is channel mask instead of channel count.
Change-Id: Ib2f1c29bea70f016b3cfce83942ba292190ac965
Diffstat (limited to 'media/libstagefright')
| -rw-r--r-- | media/libstagefright/AudioSource.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libstagefright/AudioSource.cpp b/media/libstagefright/AudioSource.cpp index 572927a..ed142a4 100644 --- a/media/libstagefright/AudioSource.cpp +++ b/media/libstagefright/AudioSource.cpp @@ -62,7 +62,7 @@ AudioSource::AudioSource( status_t status = AudioRecord::getMinFrameCount(&minFrameCount, sampleRate, AUDIO_FORMAT_PCM_16_BIT, - channelCount); + audio_channel_in_mask_from_count(channelCount)); if (status == OK) { // make sure that the AudioRecord callback never returns more than the maximum // buffer size |
