diff options
author | Chris Robinson <[email protected]> | 2023-09-14 07:31:25 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-09-14 07:31:25 -0700 |
commit | f098f253324d4d9b0669e061fab006295d826a53 (patch) | |
tree | 6dada40a46c7b774be224eacaebd6ac64cec1b5c /alc/effects/pshifter.cpp | |
parent | 2ea092d6ad43c636713f53532d7e68bd5444b91d (diff) |
Store channel positions as vectors instead of angles
To avoid extraneous conversions between angles and vectors
Diffstat (limited to 'alc/effects/pshifter.cpp')
-rw-r--r-- | alc/effects/pshifter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/effects/pshifter.cpp b/alc/effects/pshifter.cpp index 3cec1df9..2460cf78 100644 --- a/alc/effects/pshifter.cpp +++ b/alc/effects/pshifter.cpp @@ -142,7 +142,7 @@ void PshifterState::update(const ContextBase*, const EffectSlot *slot, mPitchShiftI = clampu(fastf2u(pitch*MixerFracOne), MixerFracHalf, MixerFracOne*2); mPitchShift = static_cast<float>(mPitchShiftI) * float{1.0f/MixerFracOne}; - static constexpr auto coeffs = CalcDirectionCoeffs({0.0f, 0.0f, -1.0f}); + static constexpr auto coeffs = CalcDirectionCoeffs(std::array{0.0f, 0.0f, -1.0f}); mOutTarget = target.Main->Buffer; ComputePanGains(target.Main, coeffs.data(), slot->Gain, mTargetGains); |