aboutsummaryrefslogtreecommitdiffstats
path: root/examples/alplay.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-09-17 22:49:52 -0700
committerChris Robinson <[email protected]>2018-09-17 22:49:52 -0700
commitb77e6096b8ed26b8fee24a18820c0592eeee87b4 (patch)
tree7f72a4b3ff4fb55d4520c81cce0f839efb4486e0 /examples/alplay.c
parent7f4441ffbe072c45ea5a141fc126d81095fe7fca (diff)
Fix some potential race conditions with OpenSL
For playback, increment the ring buffer's write pointer before queueing audio, to handle cases where the callback is invoked, advancing the read pointer, before the write pointer is advanced. For capture, limit the number of re-queued chunks to the number of fully read chunks.
Diffstat (limited to 'examples/alplay.c')
0 files changed, 0 insertions, 0 deletions