aboutsummaryrefslogtreecommitdiffstats
path: root/alc/voice.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-12-11 15:08:50 -0800
committerChris Robinson <[email protected]>2020-12-11 15:08:50 -0800
commit1bb7f575f056f33d0957fe864cd62072982fc66e (patch)
tree2c775560b5dfd13b8cb41dfb5fd7f6e676efffce /alc/voice.cpp
parentbd08b9a5b52f4f6f056d428399f92df92f82c00a (diff)
Don't modify the IR size of loaded HRTFs
Diffstat (limited to 'alc/voice.cpp')
-rw-r--r--alc/voice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/voice.cpp b/alc/voice.cpp
index 600fe80e..eec34246 100644
--- a/alc/voice.cpp
+++ b/alc/voice.cpp
@@ -467,7 +467,7 @@ void Voice::mix(const State vstate, ALCcontext *Context, const uint SamplesToDo)
ALCdevice *Device{Context->mDevice.get()};
const uint NumSends{Device->NumAuxSends};
- const uint IrSize{Device->mHrtf ? Device->mHrtf->irSize : 0};
+ const uint IrSize{Device->mIrSize};
ResamplerFunc Resample{(increment == MixerFracOne && DataPosFrac == 0) ?
Resample_<CopyTag,CTag> : mResampler};