aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixer.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-05-24 16:55:10 -0700
committerChris Robinson <[email protected]>2014-05-24 16:55:10 -0700
commit4ca561acd379665b82ec9c42773aaec01df97891 (patch)
treedc840c656216190b79c5a1314a9a9702403c37ae /Alc/mixer.c
parent13eac2552e8df0e0a4d5e2012497d4076a365661 (diff)
Move the active source's offset out of the direct params
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 0d52b9e3..ef1517b3 100644
--- a/Alc/mixer.c
+++ b/Alc/mixer.c
@@ -359,7 +359,7 @@ ALvoid MixSource(ALactivesource *src, ALCdevice *Device, ALuint SamplesToDo)
parms->Counter, OutPos, DstBufferSize);
else
src->Dry.HrtfMix(
- parms->OutBuffer, samples, parms->Counter, parms->Offset,
+ parms->OutBuffer, samples, parms->Counter, src->Offset,
OutPos, parms->Mix.Hrtf.IrSize, &parms->Mix.Hrtf.Params[chan],
&parms->Mix.Hrtf.State[chan], DstBufferSize
);
@@ -390,7 +390,7 @@ ALvoid MixSource(ALactivesource *src, ALCdevice *Device, ALuint SamplesToDo)
DataPosFrac &= FRACTIONMASK;
}
OutPos += DstBufferSize;
- src->Direct.Offset += DstBufferSize;
+ src->Offset += DstBufferSize;
src->Direct.Counter = maxu(src->Direct.Counter, DstBufferSize) - DstBufferSize;
for(j = 0;j < Device->NumAuxSends;j++)
src->Send[j].Counter = maxu(src->Send[j].Counter, DstBufferSize) - DstBufferSize;