diff options
author | Chris Robinson <[email protected]> | 2020-04-21 23:58:53 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-04-21 23:58:53 -0700 |
commit | 2deb5e47d1f72f211961289e6fa92ae6c89184fb (patch) | |
tree | e8a47e93709f4be475ffa2b57d0a5af358f4b7ed /alc/effects/pshifter.cpp | |
parent | a97e6e6a125c561d0804c3b0d5976b8f18093027 (diff) |
Avoid an unnecessary out parameter
Diffstat (limited to 'alc/effects/pshifter.cpp')
-rw-r--r-- | alc/effects/pshifter.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/alc/effects/pshifter.cpp b/alc/effects/pshifter.cpp index 136558d5..375681df 100644 --- a/alc/effects/pshifter.cpp +++ b/alc/effects/pshifter.cpp @@ -130,11 +130,10 @@ void PshifterState::update(const ALCcontext*, const ALeffectslot *slot, const Ef mPitchShiftI = fastf2u(pitch*FRACTIONONE); mPitchShift = mPitchShiftI * double{1.0/FRACTIONONE}; - float coeffs[MAX_AMBI_CHANNELS]; - CalcDirectionCoeffs({0.0f, 0.0f, -1.0f}, 0.0f, coeffs); + const auto coeffs = CalcDirectionCoeffs({0.0f, 0.0f, -1.0f}, 0.0f); mOutTarget = target.Main->Buffer; - ComputePanGains(target.Main, coeffs, slot->Params.Gain, mTargetGains); + ComputePanGains(target.Main, coeffs.data(), slot->Params.Gain, mTargetGains); } void PshifterState::process(const size_t samplesToDo, const al::span<const FloatBufferLine> samplesIn, const al::span<FloatBufferLine> samplesOut) |