diff options
author | Chris Robinson <[email protected]> | 2019-05-29 09:37:25 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-05-29 09:37:25 -0700 |
commit | ec3a6f8cded70aeb54e9c658fa68a680c017e1ef (patch) | |
tree | ba1d289c58645040cf0aaccaf6405dae8a87c414 /Alc/effects/fshifter.cpp | |
parent | b923eb187991a8db56fd23cffa70f946ce24c1ff (diff) |
Use FloatBufferLine for the effect process method
Diffstat (limited to 'Alc/effects/fshifter.cpp')
-rw-r--r-- | Alc/effects/fshifter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Alc/effects/fshifter.cpp b/Alc/effects/fshifter.cpp index e3dc6f1d..0b8d33e4 100644 --- a/Alc/effects/fshifter.cpp +++ b/Alc/effects/fshifter.cpp @@ -83,7 +83,7 @@ struct FshifterState final : public EffectState { ALboolean deviceUpdate(const ALCdevice *device) override; void update(const ALCcontext *context, const ALeffectslot *slot, const EffectProps *props, const EffectTarget target) override; - void process(ALsizei samplesToDo, const ALfloat (*RESTRICT samplesIn)[BUFFERSIZE], const ALsizei numInput, ALfloat (*RESTRICT samplesOut)[BUFFERSIZE], const ALsizei numOutput) override; + void process(const ALsizei samplesToDo, const FloatBufferLine *RESTRICT samplesIn, const ALsizei numInput, FloatBufferLine *RESTRICT samplesOut, const ALsizei numOutput) override; DEF_NEWDEL(FshifterState) }; @@ -138,7 +138,7 @@ void FshifterState::update(const ALCcontext *context, const ALeffectslot *slot, ComputePanGains(target.Main, coeffs, slot->Params.Gain, mTargetGains); } -void FshifterState::process(ALsizei samplesToDo, const ALfloat (*RESTRICT samplesIn)[BUFFERSIZE], const ALsizei /*numInput*/, ALfloat (*RESTRICT samplesOut)[BUFFERSIZE], const ALsizei numOutput) +void FshifterState::process(const ALsizei samplesToDo, const FloatBufferLine *RESTRICT samplesIn, const ALsizei /*numInput*/, FloatBufferLine *RESTRICT samplesOut, const ALsizei numOutput) { static constexpr complex_d complex_zero{0.0, 0.0}; ALfloat *RESTRICT BufferOut = mBufferOut; @@ -198,8 +198,8 @@ void FshifterState::process(ALsizei samplesToDo, const ALfloat (*RESTRICT sample } /* Now, mix the processed sound data to the output. */ - MixSamples(BufferOut, numOutput, samplesOut, mCurrentGains, mTargetGains, - maxi(samplesToDo, 512), 0, samplesToDo); + MixSamples(BufferOut, numOutput, &reinterpret_cast<ALfloat(&)[BUFFERSIZE]>(samplesOut[0]), + mCurrentGains, mTargetGains, maxi(samplesToDo, 512), 0, samplesToDo); } |