aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixer.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-03-06 22:58:04 -0800
committerChris Robinson <[email protected]>2017-03-07 00:19:40 -0800
commit190120dfd7ae53e284944fa4971efcf999cc321e (patch)
treec081ca66b3680270c31a667eaa29c1eef3cb4c0b /Alc/mixer.c
parentbc0096365e66b8114a54bb533e818deb794c7601 (diff)
Store the channel count and sample size in the voice
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 393d9210..1c503a92 100644
--- a/Alc/mixer.c
+++ b/Alc/mixer.c
@@ -389,8 +389,8 @@ ALboolean MixSource(ALvoice *voice, ALsource *Source, ALCdevice *Device, ALsizei
DataPosFrac = ATOMIC_LOAD(&voice->position_fraction, almemory_order_relaxed);
BufferListItem = ATOMIC_LOAD(&voice->current_buffer, almemory_order_relaxed);
Looping = ATOMIC_LOAD(&Source->looping, almemory_order_relaxed);
- NumChannels = Source->NumChannels;
- SampleSize = Source->SampleSize;
+ NumChannels = voice->NumChannels;
+ SampleSize = voice->SampleSize;
increment = voice->Step;
IrSize = (Device->Hrtf.Handle ? Device->Hrtf.Handle->irSize : 0);