DSPHLE/AX: Use in-class initialization.

This commit is contained in:
Admiral H. Curtiss 2021-08-27 03:00:13 +02:00
parent 83ba17fc25
commit a4d4dc82d4
2 changed files with 4 additions and 5 deletions

View File

@ -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);
}

View File

@ -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();