commit | abab522d57a88875189ab8a00876528b30c698e1 | [log] [tgz] |
---|---|---|
author | Judy Hsiao <judyhsiao@google.com> | Sat Nov 09 18:14:58 2019 +0800 |
committer | Judy Hsiao <judyhsiao@google.com> | Wed Nov 20 13:58:46 2019 +0800 |
tree | 145449c5e6b8bf62688bda83fc3fa852ab6ba942 | |
parent | 493a55d11183402fd06315b32e640b7ce75abe63 [diff] |
AudioFlinger: Fix getInputBufferSize() calculation 1. Query 44100 and 48000 SR if proposed SR is not supported 2. Query AUDIO_CHANNEL_IN_MONO and AUDIO_CHANNEL_IN_STEREO if proposed channel_mask is not supported 3. Return with bytes rather than frames 4. Fix destinationFramesPossible usage Test: run cts android.media.cts.AudioRecord_BufferSizeTest#testGetMinBufferSize Bug: 144245613 Bug: 144245318 Bug: 144000030 Change-Id: I0fa90eb1bef63bd441724cdb0fa7f9172f503364