Update the context state properties separately
commit101d284a1801532e12b7867aed3499896d7a9a6f
authorChris Robinson <chris.kcat@gmail.com>
Wed, 27 Sep 2017 15:55:42 +0000 (27 08:55 -0700)
committerChris Robinson <chris.kcat@gmail.com>
Wed, 27 Sep 2017 15:55:42 +0000 (27 08:55 -0700)
treec9ae9c08e48b5c0a0dd579b43de40887a8e22a8d
parent2f6613905399aa06a253a421352e6fff57a1dce1
Update the context state properties separately

The context state properties are less likely to change compared to the listener
state, and future changes may prefer more infrequent updates to the context
state.

Note that this puts the MetersPerUnit in as a context state, even though it's
handled through the listener functions. Considering the infrequency that it's
updated at (generally set just once for the context's lifetime), it makes more
sense to put it there than with the more frequently updated listener
properties. The aforementioned future changes would also prefer MetersPerUnit
to not be updated unnecessarily.
Alc/ALc.c
Alc/ALu.c
OpenAL32/Include/alListener.h
OpenAL32/Include/alMain.h
OpenAL32/Include/alu.h
OpenAL32/alListener.c
OpenAL32/alState.c