diff options
Diffstat (limited to 'Alc/panning.cpp')
-rw-r--r-- | Alc/panning.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Alc/panning.cpp b/Alc/panning.cpp index 502a02cd..99a0534f 100644 --- a/Alc/panning.cpp +++ b/Alc/panning.cpp @@ -697,8 +697,7 @@ void InitHrtfPanning(ALCdevice *device) count = static_cast<ALsizei>(COUNTOF(IndexMap)); } - device->mHrtfState.reset( - new (al_calloc(16, FAM_SIZE(DirectHrtfState, Chan, count))) DirectHrtfState{}); + device->mHrtfState = DirectHrtfState::Create(count); std::transform(std::begin(IndexMap), std::begin(IndexMap)+count, std::begin(device->Dry.AmbiMap), [](const ALsizei &index) noexcept { return BFChannelConfig{1.0f, index}; } |