commit | 7a61a3ae540748164068683cadacaea5ed225d68 | [log] [tgz] |
---|---|---|
author | Phil Burk <philburk@google.com> | Mon Jul 10 11:53:09 2017 -0700 |
committer | Phil Burk <philburk@google.com> | Fri Sep 01 11:33:03 2017 -0700 |
tree | 3bd852fe12b990b9dafa69409c87d94d0f410a01 | |
parent | 3b224af571e8e70ef643a36e144e7427857d271d [diff] |
aaudio examples: handle disconnect in write_sine_callback Automatically reopen the stream if we get disconnected. Add a futex based signaling class so that the error callback can immediately inform a waiting thread. This can be used to prevent the system from playing an unpleasant sound after the stream is disconnected. Bug: 63342351 Test: plug and unplug headphones while running write_sine_callback Change-Id: I3ea4fb24106156a29d2f302f3eb614f25f1b758a