diff options
author | Chris Robinson <[email protected]> | 2023-10-15 02:38:20 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-10-15 02:38:20 -0700 |
commit | bfee94dfec64dd22ad8d985e71803fbe411f7a1a (patch) | |
tree | 1336374fa65a1eed4dcc790b4707dde13341a765 /alc/effects/fshifter.cpp | |
parent | 5619de5ca05684656f32eafd8cfc987fb6161d97 (diff) |
Use a span for a known array length instead of a raw pointer
Diffstat (limited to 'alc/effects/fshifter.cpp')
-rw-r--r-- | alc/effects/fshifter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/effects/fshifter.cpp b/alc/effects/fshifter.cpp index ec0cc29f..d3989e84 100644 --- a/alc/effects/fshifter.cpp +++ b/alc/effects/fshifter.cpp @@ -172,8 +172,8 @@ void FshifterState::update(const ContextBase *context, const EffectSlot *slot, auto &rcoeffs = (device->mRenderMode != RenderMode::Pairwise) ? rcoeffs_nrml : rcoeffs_pw; mOutTarget = target.Main->Buffer; - ComputePanGains(target.Main, lcoeffs.data(), slot->Gain, mGains[0].Target); - ComputePanGains(target.Main, rcoeffs.data(), slot->Gain, mGains[1].Target); + ComputePanGains(target.Main, lcoeffs, slot->Gain, mGains[0].Target); + ComputePanGains(target.Main, rcoeffs, slot->Gain, mGains[1].Target); } void FshifterState::process(const size_t samplesToDo, const al::span<const FloatBufferLine> samplesIn, const al::span<FloatBufferLine> samplesOut) |