aboutsummaryrefslogtreecommitdiffstats
path: root/alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-08-16 13:00:03 -0700
committerChris Robinson <[email protected]>2022-08-16 13:00:03 -0700
commit90f02176dd46f0754ed0c5f1e95b9ba9917839bb (patch)
treee3a792bbbe31939abae8b01a3bf66344b2aa9380 /alc
parent832ccd7f489f7db763a164c663d730f4cadb71bc (diff)
Inline a function and remove an unnecessary parameter
Diffstat (limited to 'alc')
-rw-r--r--alc/effects/convolution.cpp2
-rw-r--r--alc/effects/reverb.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/alc/effects/convolution.cpp b/alc/effects/convolution.cpp
index 196238fc..c0e796fd 100644
--- a/alc/effects/convolution.cpp
+++ b/alc/effects/convolution.cpp
@@ -420,7 +420,7 @@ void ConvolutionState::update(const ContextBase *context, const EffectSlot *slot
if(device->mAmbiOrder > mAmbiOrder)
{
mMix = &ConvolutionState::UpsampleMix;
- const auto scales = AmbiScale::GetHFOrderScales(mAmbiOrder, device->mAmbiOrder);
+ const auto scales = AmbiScale::GetHFOrderScales(mAmbiOrder);
(*mChans)[0].mHfScale = scales[0];
for(size_t i{1};i < mChans->size();++i)
(*mChans)[i].mHfScale = scales[1];
diff --git a/alc/effects/reverb.cpp b/alc/effects/reverb.cpp
index 7e90f692..3ef56206 100644
--- a/alc/effects/reverb.cpp
+++ b/alc/effects/reverb.cpp
@@ -696,7 +696,7 @@ void ReverbState::deviceUpdate(const DeviceBase *device, const Buffer&)
if(device->mAmbiOrder > 1)
{
mUpmixOutput = true;
- mOrderScales = AmbiScale::GetHFOrderScales(1, device->mAmbiOrder);
+ mOrderScales = AmbiScale::GetHFOrderScales(1);
}
else
{