From f35eb64619ae91cd786380660e3d90da18f557fb Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 26 Jul 2022 02:21:47 -0700 Subject: Ensure some mixing buffers are aligned for SIMD --- alc/effects/distortion.cpp | 2 +- alc/effects/equalizer.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'alc') diff --git a/alc/effects/distortion.cpp b/alc/effects/distortion.cpp index 74cffd4a..ed21ef34 100644 --- a/alc/effects/distortion.cpp +++ b/alc/effects/distortion.cpp @@ -53,7 +53,7 @@ struct DistortionState final : public EffectState { float mAttenuation{}; float mEdgeCoeff{}; - float mBuffer[2][BufferLineSize]{}; + alignas(16) float mBuffer[2][BufferLineSize]{}; void deviceUpdate(const DeviceBase *device, const Buffer &buffer) override; diff --git a/alc/effects/equalizer.cpp b/alc/effects/equalizer.cpp index 67ad67b0..202c191b 100644 --- a/alc/effects/equalizer.cpp +++ b/alc/effects/equalizer.cpp @@ -95,7 +95,7 @@ struct EqualizerState final : public EffectState { float TargetGains[MAX_OUTPUT_CHANNELS]{}; } mChans[MaxAmbiChannels]; - FloatBufferLine mSampleBuffer{}; + alignas(16) FloatBufferLine mSampleBuffer{}; void deviceUpdate(const DeviceBase *device, const Buffer &buffer) override; -- cgit v1.2.3