commit | 5446e541367061b53f45f3fd4600f9060680bca3 | [log] [tgz] |
---|---|---|
author | Glenn Kasten <gkasten@google.com> | Wed Jan 08 08:58:53 2014 -0800 |
committer | Glenn Kasten <gkasten@google.com> | Wed Jan 08 10:05:05 2014 -0800 |
tree | aab5a964fa730bc79bad87c2904177019e856827 | |
parent | 4d973f3894a50413f21e7db284e96afc87f57698 [diff] |
Cleanup AudioSystem::getInputBufferSize error handling and caching Previously, if the IAudioFlinger::getInputBufferSize failed, it would return NO_ERROR but a zero buffer size value, which could confuse the caller. Now it returns BAD_VALUE in this case. Also it would still cache the zero buffer size. Now it does not cache on failure. Removed over-initialization of the cache globals. Change-Id: I6835fcb56fe52535e018fc8c0c242115221b5d85