From a4d4dc82d4488db5873aa187530a2780e9501ee6 Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Fri, 27 Aug 2021 03:00:13 +0200 Subject: [PATCH] DSPHLE/AX: Use in-class initialization. --- Source/Core/Core/HW/DSPHLE/UCodes/AX.cpp | 3 +-- Source/Core/Core/HW/DSPHLE/UCodes/AX.h | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Source/Core/Core/HW/DSPHLE/UCodes/AX.cpp b/Source/Core/Core/HW/DSPHLE/UCodes/AX.cpp index 942ded787b..fe14ae1cc1 100644 --- a/Source/Core/Core/HW/DSPHLE/UCodes/AX.cpp +++ b/Source/Core/Core/HW/DSPHLE/UCodes/AX.cpp @@ -24,8 +24,7 @@ namespace DSP::HLE { -AXUCode::AXUCode(DSPHLE* dsphle, u32 crc) - : UCodeInterface(dsphle, crc), m_cmdlist_size(0), m_compressor_pos(0) +AXUCode::AXUCode(DSPHLE* dsphle, u32 crc) : UCodeInterface(dsphle, crc) { INFO_LOG_FMT(DSPHLE, "Instantiating AXUCode: crc={:08x}", crc); } diff --git a/Source/Core/Core/HW/DSPHLE/UCodes/AX.h b/Source/Core/Core/HW/DSPHLE/UCodes/AX.h index dea125d78c..514dc24bc6 100644 --- a/Source/Core/Core/HW/DSPHLE/UCodes/AX.h +++ b/Source/Core/Core/HW/DSPHLE/UCodes/AX.h @@ -90,15 +90,15 @@ protected: int m_samples_auxB_surround[32 * 5]; u16 m_cmdlist[512]; - u32 m_cmdlist_size; + u32 m_cmdlist_size = 0; // Table of coefficients for polyphase sample rate conversion. // The coefficients aren't always available (they are part of the DSP DROM) // so we also need to know if they are valid or not. - bool m_coeffs_available; + bool m_coeffs_available = false; s16 m_coeffs[0x800]; - u16 m_compressor_pos; + u16 m_compressor_pos = 0; void LoadResamplingCoefficients();