aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alu.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-01-10 23:59:19 -0800
committerChris Robinson <[email protected]>2023-01-10 23:59:19 -0800
commita82c29bb4fadc76957946698149eadfdf64395bd (patch)
tree67898016bb5025347f47315e8d10df5f605d02bb /alc/alu.cpp
parent6bd541d02e664505e3aacc643a46ecfb6919612f (diff)
Rename some struct members
And make a related function a member function
Diffstat (limited to 'alc/alu.cpp')
-rw-r--r--alc/alu.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/alc/alu.cpp b/alc/alu.cpp
index a9bb5298..d0b8fbd5 100644
--- a/alc/alu.cpp
+++ b/alc/alu.cpp
@@ -1047,7 +1047,7 @@ void CalcPanningAndFilters(Voice *voice, const float xpos, const float ypos, con
if(voice->mFmtChannels == FmtMono)
{
- GetHrtfCoeffs(Device->mHrtf.get(), src_ev, src_az, Distance*NfcScale, Spread,
+ Device->mHrtf->getCoeffs(src_ev, src_az, Distance*NfcScale, Spread,
voice->mChans[0].mDryParams.Hrtf.Target.Coeffs,
voice->mChans[0].mDryParams.Hrtf.Target.Delay);
voice->mChans[0].mDryParams.Hrtf.Target.Gain = DryGain.Base;
@@ -1084,7 +1084,7 @@ void CalcPanningAndFilters(Voice *voice, const float xpos, const float ypos, con
if(az < -pi_v<float>) az += pi_v<float>*2.0f;
else if(az > pi_v<float>) az -= pi_v<float>*2.0f;
- GetHrtfCoeffs(Device->mHrtf.get(), ev, az, Distance*NfcScale, 0.0f,
+ Device->mHrtf->getCoeffs(ev, az, Distance*NfcScale, 0.0f,
voice->mChans[c].mDryParams.Hrtf.Target.Coeffs,
voice->mChans[c].mDryParams.Hrtf.Target.Delay);
voice->mChans[c].mDryParams.Hrtf.Target.Gain = DryGain.Base;
@@ -1119,7 +1119,7 @@ void CalcPanningAndFilters(Voice *voice, const float xpos, const float ypos, con
/* Get the HRIR coefficients and delays for this channel
* position.
*/
- GetHrtfCoeffs(Device->mHrtf.get(), chans[c].elevation, chans[c].angle,
+ Device->mHrtf->getCoeffs(chans[c].elevation, chans[c].angle,
std::numeric_limits<float>::infinity(), spread,
voice->mChans[c].mDryParams.Hrtf.Target.Coeffs,
voice->mChans[c].mDryParams.Hrtf.Target.Delay);