aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2016-05-19 20:50:55 -0700
committerChris Robinson <[email protected]>2016-05-19 20:50:55 -0700
commit7bf64eaee0788b7eb64c7410384a9ee66f75c4ce (patch)
treeb0b410caa1aa380fb329ff982f881a958f7eaec0 /Alc/ALu.c
parentd80f00173f0ef623f69a9cc307457b198186ded8 (diff)
Make the source position calues atomic
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 44361979..ec0dd011 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -1619,8 +1619,8 @@ ALvoid aluHandleDisconnect(ALCdevice *device)
{
source->state = AL_STOPPED;
ATOMIC_STORE(&source->current_buffer, NULL);
- source->position = 0;
- source->position_fraction = 0;
+ ATOMIC_STORE(&source->position, 0);
+ ATOMIC_STORE(&source->position_fraction, 0);
}
voice++;