diff options
author | Chris Robinson <[email protected]> | 2019-01-28 20:31:58 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-01-28 20:43:34 -0800 |
commit | 2d93a9cdb176d0958cd78979794a9acc35de0725 (patch) | |
tree | ebfab529b3a8b58aec6e469fb35db04eea5b736d /Alc/panning.cpp | |
parent | df5d238e3db579f43b394d7f3da43358f21f416f (diff) |
Collect HRTF field info into a struct
Diffstat (limited to 'Alc/panning.cpp')
-rw-r--r-- | Alc/panning.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Alc/panning.cpp b/Alc/panning.cpp index b53e3464..69ca1ed7 100644 --- a/Alc/panning.cpp +++ b/Alc/panning.cpp @@ -727,8 +727,9 @@ void InitHrtfPanning(ALCdevice *device) static_cast<ALsizei>(COUNTOF(AmbiPoints)), AmbiOrderHFGain ); - InitNearFieldCtrl(device, device->mHrtf->distance, device->AmbiUp ? 2 : 1, - ChansPerOrder); + HrtfEntry *Hrtf{device->mHrtf}; + const auto &field = Hrtf->field[Hrtf->fdCount-1]; + InitNearFieldCtrl(device, field.distance, device->AmbiUp ? 2 : 1, ChansPerOrder); } void InitUhjPanning(ALCdevice *device) |