Clear unknown in MxWavePresenter

This commit is contained in:
Fabian Neundorf 2025-06-28 22:25:18 +02:00
parent 805c57b6aa
commit 6e48f580b3
2 changed files with 3 additions and 3 deletions

View File

@ -71,7 +71,7 @@ class MxWavePresenter : public MxSoundPresenter {
void Destroy(MxBool p_fromDestructor);
MxS8 GetPlayedChunks();
MxBool FUN_100b1ba0();
MxBool ReadyForNextChunk();
void WriteToSoundBuffer(void* p_audioPtr, MxU32 p_length);
WaveFormat* m_waveFormat; // 0x54

View File

@ -67,7 +67,7 @@ MxS8 MxWavePresenter::GetPlayedChunks()
}
// FUNCTION: LEGO1 0x100b1ba0
MxBool MxWavePresenter::FUN_100b1ba0()
MxBool MxWavePresenter::ReadyForNextChunk()
{
return !m_started || GetPlayedChunks() != m_writtenChunks;
}
@ -248,7 +248,7 @@ MxResult MxWavePresenter::PutData()
if (IsEnabled()) {
switch (m_currentTickleState) {
case e_streaming:
if (m_currentChunk && FUN_100b1ba0()) {
if (m_currentChunk && ReadyForNextChunk()) {
WriteToSoundBuffer(m_currentChunk->GetData(), m_currentChunk->GetLength());
m_subscriber->FreeDataChunk(m_currentChunk);
m_currentChunk = NULL;