diff options
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) |