diff options
author | Chris Robinson <[email protected]> | 2023-12-20 01:53:27 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-12-20 01:53:27 -0800 |
commit | aa6e04a5562052db172117043165ae999683b052 (patch) | |
tree | 11b36fabd9a542aca0f5ad234d365ce8067dd46d /core/device.h | |
parent | 59c466077fd6f16af64afcc6260bb61aa4e632dc (diff) |
Ensure struct members are initialized
Diffstat (limited to 'core/device.h')
-rw-r--r-- | core/device.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/device.h b/core/device.h index d85b9254..f02700c6 100644 --- a/core/device.h +++ b/core/device.h @@ -237,17 +237,17 @@ struct DeviceBase { static constexpr size_t MixerLineSize{BufferLineSize + DecoderBase::sMaxPadding}; static constexpr size_t MixerChannelsMax{16}; using MixerBufferLine = std::array<float,MixerLineSize>; - alignas(16) std::array<MixerBufferLine,MixerChannelsMax> mSampleData; - alignas(16) std::array<float,MixerLineSize+MaxResamplerPadding> mResampleData; + alignas(16) std::array<MixerBufferLine,MixerChannelsMax> mSampleData{}; + alignas(16) std::array<float,MixerLineSize+MaxResamplerPadding> mResampleData{}; - alignas(16) std::array<float,BufferLineSize> FilteredData; + alignas(16) std::array<float,BufferLineSize> FilteredData{}; union { - alignas(16) std::array<float,BufferLineSize+HrtfHistoryLength> HrtfSourceData; + alignas(16) std::array<float,BufferLineSize+HrtfHistoryLength> HrtfSourceData{}; alignas(16) std::array<float,BufferLineSize> NfcSampleData; }; /* Persistent storage for HRTF mixing. */ - alignas(16) std::array<float2,BufferLineSize+HrirLength> HrtfAccumData; + alignas(16) std::array<float2,BufferLineSize+HrirLength> HrtfAccumData{}; /* Mixing buffer used by the Dry mix and Real output. */ al::vector<FloatBufferLine, 16> MixBuffer; |