diff options
author | Chris Robinson <[email protected]> | 2019-03-12 16:45:34 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-03-12 16:45:34 -0700 |
commit | 3a39a2c79079433e728d145a036fd51ac9a39b78 (patch) | |
tree | 6fdb9384c4ca5379999350b7f4e14ef9f30945b3 /Alc/mixvoice.cpp | |
parent | 24ae12f58ee42440d15a9d44a0e4c9607758de68 (diff) |
Set the correct target gain after a fade-out HRTF mix
Diffstat (limited to 'Alc/mixvoice.cpp')
-rw-r--r-- | Alc/mixvoice.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/mixvoice.cpp b/Alc/mixvoice.cpp index 3823963b..fcd08d0b 100644 --- a/Alc/mixvoice.cpp +++ b/Alc/mixvoice.cpp @@ -699,7 +699,7 @@ void MixVoice(ALvoice *voice, ALvoice::State vstate, const ALuint SourceID, ALCc if(DstBufferSize < Counter) parms.Hrtf.Old.Gain = gain; else - parms.Hrtf.Old.Gain = parms.Hrtf.Target.Gain; + parms.Hrtf.Old.Gain = TargetGain; } } else if((voice->mFlags&VOICE_HAS_NFC)) |