commit | 41f19d8e9471945b358c9ae1dffda60f195d9f5b | [log] [tgz] |
---|---|---|
author | Phil Burk <philburk@google.com> | Tue Feb 13 14:59:10 2018 -0800 |
committer | Phil Burk <philburk@google.com> | Thu Mar 01 19:13:02 2018 -0800 |
tree | 76116b8a7d57b4f696fa1bda0cbeda63fa208d45 | |
parent | 54486dc5d502e563747ec5744f61af97ea9c9035 [diff] |
aaudio: convert mono output to stereo MMAP hardware streams are often stereo. But apps often want to output a mono stream. Since converting from mono to stereo is easy, we can go ahead and open a stereo hardware stream and then just convert the apps mono data to stereo for the HW. Add getDeviceChannelCount(). Test: adb shell write_sine_callback -pl -s10 -c1 -m3 Test: adb shell write_sine_callback -pl -s10 -c1 -m3 -x Change-Id: I444a38c6f5cd32d1d6113f16aacec68285a1bc82