commit | 134f197bf7e2785ed9de336dc8e22e870c2ba6bd | [log] [tgz] |
---|---|---|
author | Phil Burk <philburk@google.com> | Fri Dec 08 13:06:11 2017 -0800 |
committer | Phil Burk <philburk@google.com> | Tue Dec 12 14:29:12 2017 -0800 |
tree | 5151b8ba79552400756b29cfe1b6d7f74dcae8f8 | |
parent | 5fb93fa294ee05a25f86312e926b5ca4e0d1d3b2 [diff] |
aaudio: prevent stop/close from a callback Detect whether AAudioStream_requestStop() is being called from a data or error callback and return error. Also for start(), pause(), flush() and close(). Honor AAUDIO_CALLBACK_RESULT_STOP in Legacy callback. Bug: 65560631 Bug: 62943389 Bug: 63096718 Test: test_various.cpp callback_blocker_none and callback_blocker_lowlat Change-Id: I29a685cd42910f70d16e23db0f9ec00b72451cfc