diff options
author | Chris Robinson <[email protected]> | 2014-03-23 03:03:03 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-03-23 03:03:03 -0700 |
commit | 0ce0a88fd67ddcf7cb5248ac08d36cfa1c0013eb (patch) | |
tree | 97529b194e1ae3c33b7d4faa605ee3ead4e350d2 /Alc/mixer.c | |
parent | b0d511a8609cd2f3c10fd5b65603211a14c8141e (diff) |
Move the step counter and moving flag to DirectParams
Diffstat (limited to 'Alc/mixer.c')
-rw-r--r-- | Alc/mixer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/mixer.c b/Alc/mixer.c index 22c5aad7..8ce7d845 100644 --- a/Alc/mixer.c +++ b/Alc/mixer.c @@ -413,10 +413,10 @@ ALvoid MixSource(ALactivesource *src, ALCdevice *Device, ALuint SamplesToDo) Source->position_fraction = DataPosFrac; src->Direct.Mix.Hrtf.State.Offset += OutPos; if(State == AL_PLAYING) - src->Direct.Mix.Hrtf.State.Counter = maxu(src->Direct.Mix.Hrtf.State.Counter, OutPos) - OutPos; + src->Direct.Counter = maxu(src->Direct.Counter, OutPos) - OutPos; else { - src->Direct.Mix.Hrtf.State.Counter = 0; - src->Direct.Mix.Hrtf.State.Moving = AL_FALSE; + src->Direct.Counter = 0; + src->Direct.Moving = AL_FALSE; } } |