diff options
author | Chris Robinson <[email protected]> | 2018-09-17 22:49:52 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-09-17 22:49:52 -0700 |
commit | b77e6096b8ed26b8fee24a18820c0592eeee87b4 (patch) | |
tree | 7f72a4b3ff4fb55d4520c81cce0f839efb4486e0 /Alc/backends/alsa.c | |
parent | 7f4441ffbe072c45ea5a141fc126d81095fe7fca (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 'Alc/backends/alsa.c')
0 files changed, 0 insertions, 0 deletions