diff options
author | Chris Robinson <[email protected]> | 2016-02-14 01:22:01 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-02-14 01:22:01 -0800 |
commit | 25732d0895cc4d320472fc50cd74302d91b24a0c (patch) | |
tree | f2a6d757dceaef243881c1e942208db1bebb7d4e /OpenAL32/alSource.c | |
parent | a9135ec39d8722502e92fc5141661c3479d877d9 (diff) |
Calculate channel gain stepping just before mixing
Diffstat (limited to 'OpenAL32/alSource.c')
-rw-r--r-- | OpenAL32/alSource.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c index d31a0377..f742e1fe 100644 --- a/OpenAL32/alSource.c +++ b/OpenAL32/alSource.c @@ -2640,8 +2640,8 @@ ALvoid SetSourceState(ALsource *Source, ALCcontext *Context, ALenum state) if(discontinuity) memset(voice->PrevSamples, 0, sizeof(voice->PrevSamples)); - voice->Direct.Moving = AL_FALSE; - voice->Direct.Counter = 0; + voice->Moving = AL_FALSE; + voice->Direct.HrtfCounter = 0; for(i = 0;i < MAX_INPUT_CHANNELS;i++) { ALsizei j; @@ -2653,11 +2653,6 @@ ALvoid SetSourceState(ALsource *Source, ALCcontext *Context, ALenum state) voice->Direct.Hrtf[i].State.Values[j][1] = 0.0f; } } - for(i = 0;i < (ALsizei)device->NumAuxSends;i++) - { - voice->Send[i].Moving = AL_FALSE; - voice->Send[i].Counter = 0; - } if(BufferList->buffer->FmtChannels == FmtMono) voice->Update = CalcSourceParams; |