diff options
author | Chris Robinson <[email protected]> | 2012-10-09 06:54:21 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-10-09 06:54:21 -0700 |
commit | a4f21aaa648a8bdef3b75725a4b60bc43fbbd8d7 (patch) | |
tree | 85b3475302e13223873ea31b133a7074ccdf1705 | |
parent | 39bc2ba65c5b52b46bd8dd1587837882d98c5120 (diff) |
Set Hrtf.Moving after setting the source params instead of after mixing
-rw-r--r-- | Alc/ALu.c | 1 | ||||
-rw-r--r-- | Alc/mixer.c | 3 |
2 files changed, 1 insertions, 3 deletions
@@ -777,6 +777,7 @@ ALvoid CalcSourceParams(ALsource *ALSource, const ALCcontext *ALContext) ALSource->Params.Direct.Hrtf.Coeffs[0], ALSource->Params.Direct.Hrtf.Delay[0]); ALSource->Hrtf.Counter = 0; + ALSource->Hrtf.Moving = AL_TRUE; ALSource->Params.Direct.Hrtf.Gain = DryGain; ALSource->Params.Direct.Hrtf.Dir[0] = Position[0]; ALSource->Params.Direct.Hrtf.Dir[1] = Position[1]; diff --git a/Alc/mixer.c b/Alc/mixer.c index 1390b1f7..67efd70f 100644 --- a/Alc/mixer.c +++ b/Alc/mixer.c @@ -412,10 +412,7 @@ ALvoid MixSource(ALsource *Source, ALCdevice *Device, ALuint SamplesToDo) Source->position_fraction = DataPosFrac; Source->Hrtf.Offset += OutPos; if(State == AL_PLAYING) - { Source->Hrtf.Counter = maxu(Source->Hrtf.Counter, OutPos) - OutPos; - Source->Hrtf.Moving = AL_TRUE; - } else { Source->Hrtf.Counter = 0; |