aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixer.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-03-11 06:26:05 -0800
committerChris Robinson <[email protected]>2017-03-11 06:26:05 -0800
commitfeffe1e81a155ded0bcdb519a1a126fd8e908baa (patch)
tree3645a30361f0e39bb9a4d40f942ee53d8383bed5 /Alc/mixer.c
parent98e8f941b773df0b591e7c6c6c0e3b5096a9b4f2 (diff)
Make the voice's 'moving' state a bitflag
Diffstat (limited to 'Alc/mixer.c')
-rw-r--r--Alc/mixer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/mixer.c b/Alc/mixer.c
index a189e5e3..d8adb697 100644
--- a/Alc/mixer.c
+++ b/Alc/mixer.c
@@ -398,7 +398,7 @@ ALboolean MixSource(ALvoice *voice, ALsource *Source, ALCdevice *Device, ALsizei
Resample = ((increment == FRACTIONONE && DataPosFrac == 0) ?
Resample_copy32_C : ResampleSamples);
- Counter = voice->Moving ? SamplesToDo : 0;
+ Counter = (voice->Flags&VOICE_IS_MOVING) ? SamplesToDo : 0;
OutPos = 0;
do {
ALsizei SrcBufferSize, DstBufferSize;
@@ -723,7 +723,7 @@ ALboolean MixSource(ALvoice *voice, ALsource *Source, ALCdevice *Device, ALsizei
}
} while(State == AL_PLAYING && OutPos < SamplesToDo);
- voice->Moving = AL_TRUE;
+ voice->Flags |= VOICE_IS_MOVING;
/* Update source info */
ATOMIC_STORE(&voice->position, DataPosInt, almemory_order_relaxed);