diff options
author | Chris Robinson <[email protected]> | 2016-07-31 23:42:30 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-07-31 23:42:30 -0700 |
commit | 0fcd39c4c0205b8229df16f48b05cf0bf6600287 (patch) | |
tree | e94485a070eb032097ee010f15984d83dafa2d2f /OpenAL32/Include | |
parent | 48ff5d4ce8bd5f2d65c1aa8af77c2923d3be801c (diff) |
Don't store the looping state in the voice
Certain operations on the buffer queue depend on the loop state to behave
properly, so it should not be deferred until the async voice update occurs.
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r-- | OpenAL32/Include/alSource.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/OpenAL32/Include/alSource.h b/OpenAL32/Include/alSource.h index db138be1..74987b34 100644 --- a/OpenAL32/Include/alSource.h +++ b/OpenAL32/Include/alSource.h @@ -28,8 +28,6 @@ typedef struct ALvoice { /** Current target parameters used for mixing. */ ALint Step; - ALboolean Looping; - /* If not 'moving', gain/coefficients are set directly without fading. */ ALboolean Moving; @@ -74,7 +72,6 @@ struct ALsourceProps { ATOMIC(ALfloat) Direction[3]; ATOMIC(ALfloat) Orientation[2][3]; ATOMIC(ALboolean) HeadRelative; - ATOMIC(ALboolean) Looping; ATOMIC(enum DistanceModel) DistanceModel; ATOMIC(ALboolean) DirectChannels; @@ -128,7 +125,6 @@ typedef struct ALsource { ALfloat Direction[3]; ALfloat Orientation[2][3]; ALboolean HeadRelative; - ALboolean Looping; enum DistanceModel DistanceModel; ALboolean DirectChannels; @@ -192,6 +188,8 @@ typedef struct ALsource { ATOMIC(ALuint) position; ATOMIC(ALuint) position_fraction; + ATOMIC(ALboolean) looping; + /** Current buffer sample info. */ ALuint NumChannels; ALuint SampleSize; |