diff options
author | Chris Robinson <[email protected]> | 2019-11-16 14:07:31 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-11-16 14:07:31 -0800 |
commit | 6ad252efdaf2f4a9ed569097c35b8b781f9f1d50 (patch) | |
tree | 313561c05e9f1972f9b10881a44506e93814edaa /alc/hrtf.cpp | |
parent | d120e1464f1760b5b231321c0e68963ad633133f (diff) |
Use wrappers to distinguish elevation and azimuth values
Diffstat (limited to 'alc/hrtf.cpp')
-rw-r--r-- | alc/hrtf.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/alc/hrtf.cpp b/alc/hrtf.cpp index 5df15859..2137723d 100644 --- a/alc/hrtf.cpp +++ b/alc/hrtf.cpp @@ -319,14 +319,14 @@ void BuildBFormatHrtf(const HrtfEntry *Hrtf, DirectHrtfState *state, auto &field = Hrtf->field[0]; /* Calculate the elevation indices. */ - const auto elev0 = CalcEvIndex(field.evCount, pt.Elev); + const auto elev0 = CalcEvIndex(field.evCount, pt.Elev.value); const ALsizei elev1_idx{mini(elev0.idx+1, field.evCount-1)}; const ALsizei ir0offset{Hrtf->elev[elev0.idx].irOffset}; const ALsizei ir1offset{Hrtf->elev[elev1_idx].irOffset}; /* Calculate azimuth indices. */ - const auto az0 = CalcAzIndex(Hrtf->elev[elev0.idx].azCount, pt.Azim); - const auto az1 = CalcAzIndex(Hrtf->elev[elev1_idx].azCount, pt.Azim); + const auto az0 = CalcAzIndex(Hrtf->elev[elev0.idx].azCount, pt.Azim.value); + const auto az1 = CalcAzIndex(Hrtf->elev[elev1_idx].azCount, pt.Azim.value); /* Calculate the HRIR indices to blend. */ const ALuint idx[4]{ |