aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alu.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-22 07:54:29 -0800
committerChris Robinson <[email protected]>2018-11-22 07:54:29 -0800
commit9c155a57fb37e3869f16e2f6502ee7d95d7d6a75 (patch)
tree268be0a8db18d013476b6e19dd6d60969a2b1e6c /Alc/alu.cpp
parentba8c865513d33019962a02e00ab496365de17abf (diff)
Use unique_ptr for DirectHrtfState
Diffstat (limited to 'Alc/alu.cpp')
-rw-r--r--Alc/alu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/alu.cpp b/Alc/alu.cpp
index c67e8705..fc386908 100644
--- a/Alc/alu.cpp
+++ b/Alc/alu.cpp
@@ -119,7 +119,7 @@ void ProcessHrtf(ALCdevice *device, ALsizei SamplesToDo)
int ridx{GetChannelIdxByName(&device->RealOut, FrontRight)};
assert(lidx != -1 && ridx != -1);
- DirectHrtfState *state{device->mHrtfState};
+ DirectHrtfState *state{device->mHrtfState.get()};
for(ALsizei c{0};c < device->Dry.NumChannels;c++)
{
MixDirectHrtf(device->RealOut.Buffer[lidx], device->RealOut.Buffer[ridx],