aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixvoice.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-12-26 15:35:05 -0800
committerChris Robinson <[email protected]>2018-12-26 15:35:05 -0800
commit4f253a935a14e49a77516a56e0d4c6d6177a56b6 (patch)
tree088b3171e77f6c7863c9bbe851b4f82f4a58fbe3 /Alc/mixvoice.cpp
parentc5be03b51e8fd9bda3a46c345bdc945cfd965c2e (diff)
Handle HRTF coefficients and values by reference where possible
Diffstat (limited to 'Alc/mixvoice.cpp')
-rw-r--r--Alc/mixvoice.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/mixvoice.cpp b/Alc/mixvoice.cpp
index 5b18d547..b94f26be 100644
--- a/Alc/mixvoice.cpp
+++ b/Alc/mixvoice.cpp
@@ -605,7 +605,7 @@ ALboolean MixSource(ALvoice *voice, const ALuint SourceID, ALCcontext *Context,
ALfloat gain{lerp(parms.Hrtf.Old.Gain, parms.Hrtf.Target.Gain,
minf(1.0f, (ALfloat)fademix/Counter))};
MixHrtfParams hrtfparams;
- hrtfparams.Coeffs = parms.Hrtf.Target.Coeffs;
+ hrtfparams.Coeffs = &parms.Hrtf.Target.Coeffs;
hrtfparams.Delay[0] = parms.Hrtf.Target.Delay[0];
hrtfparams.Delay[1] = parms.Hrtf.Target.Delay[1];
hrtfparams.Gain = 0.0f;
@@ -634,7 +634,7 @@ ALboolean MixSource(ALvoice *voice, const ALuint SourceID, ALCcontext *Context,
(ALfloat)todo/(Counter-fademix));
MixHrtfParams hrtfparams;
- hrtfparams.Coeffs = parms.Hrtf.Target.Coeffs;
+ hrtfparams.Coeffs = &parms.Hrtf.Target.Coeffs;
hrtfparams.Delay[0] = parms.Hrtf.Target.Delay[0];
hrtfparams.Delay[1] = parms.Hrtf.Target.Delay[1];
hrtfparams.Gain = parms.Hrtf.Old.Gain;