Use constant for 0x7f

This commit is contained in:
Christian Semmler 2023-11-14 11:12:23 -05:00
parent bf41dfcec9
commit 340b8bc853
2 changed files with 4 additions and 2 deletions

View File

@ -5,6 +5,8 @@
#include "mxomni.h"
#include "mxsoundmanager.h"
#include <limits.h>
DECOMP_SIZE_ASSERT(MxWavePresenter, 0x6c);
DECOMP_SIZE_ASSERT(MxWavePresenter::WaveFormat, 0x1c);
@ -124,7 +126,7 @@ void MxWavePresenter::StartingTickle()
waveFormatEx.wBitsPerSample = m_waveFormat->m_waveFormatEx.wBitsPerSample;
if (waveFormatEx.wBitsPerSample == 8)
m_unk67 = 0x7f;
m_unk67 = SCHAR_MAX;
if (waveFormatEx.wBitsPerSample == 16)
m_unk67 = 0;

View File

@ -64,7 +64,7 @@ class MxWavePresenter : public MxSoundPresenter {
MxU8 m_unk64;
MxBool m_unk65;
MxBool m_unk66;
undefined m_unk67;
MxS8 m_unk67;
undefined m_unk68;
};