aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixer.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-03-23 02:45:50 -0700
committerChris Robinson <[email protected]>2014-03-23 02:45:50 -0700
commitb0d511a8609cd2f3c10fd5b65603211a14c8141e (patch)
treeed50d56b16a3450f36ee21332b5b6df052693a56 /Alc/mixer.c
parentcc599333a8100dd3b8e52ef018e01d4e184c1532 (diff)
Store the HrtfState directly in the DirectParams
Diffstat (limited to 'Alc/mixer.c')
-rw-r--r--Alc/mixer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Alc/mixer.c b/Alc/mixer.c
index 36a08ccd..22c5aad7 100644
--- a/Alc/mixer.c
+++ b/Alc/mixer.c
@@ -411,12 +411,12 @@ ALvoid MixSource(ALactivesource *src, ALCdevice *Device, ALuint SamplesToDo)
Source->BuffersPlayed = BuffersPlayed;
Source->position = DataPosInt;
Source->position_fraction = DataPosFrac;
- Source->Hrtf.Offset += OutPos;
+ src->Direct.Mix.Hrtf.State.Offset += OutPos;
if(State == AL_PLAYING)
- Source->Hrtf.Counter = maxu(Source->Hrtf.Counter, OutPos) - OutPos;
+ src->Direct.Mix.Hrtf.State.Counter = maxu(src->Direct.Mix.Hrtf.State.Counter, OutPos) - OutPos;
else
{
- Source->Hrtf.Counter = 0;
- Source->Hrtf.Moving = AL_FALSE;
+ src->Direct.Mix.Hrtf.State.Counter = 0;
+ src->Direct.Mix.Hrtf.State.Moving = AL_FALSE;
}
}