Improve handling of source state reads
commiteceeabaf2ff3814c2a8dbb5b67f79e87cfaa97cd
authorChris Robinson <chris.kcat@gmail.com>
Fri, 24 Feb 2017 09:47:34 +0000 (24 01:47 -0800)
committerChris Robinson <chris.kcat@gmail.com>
Fri, 24 Feb 2017 09:47:34 +0000 (24 01:47 -0800)
tree93b6f9cabb308fcf742c88c82d67abe1dfb6337a
parent652ef2b7fd53bbc5040b9288e2c6a03ef1934879
Improve handling of source state reads

This avoids using seq_cst for loading the source state when either inside the
mixer, or otherwise protected from inconsistencies with async updates. It also
fixes potential race conditions with getting the source offset just as a source
stops.
OpenAL32/Include/alSource.h
OpenAL32/alSource.c