DSPHLE/ASnd: Rename m_next_command_is_voice_addr to m_next_mail_is_voice_addr

This commit is contained in:
Pokechu22 2022-06-27 12:52:26 -07:00
parent 75ae3b7ec4
commit 5e64f453ab
2 changed files with 5 additions and 5 deletions

View File

@ -99,11 +99,11 @@ void ASndUCode::HandleMail(u32 mail)
{ {
PrepareBootUCode(mail); PrepareBootUCode(mail);
} }
else if (m_next_command_is_voice_addr) else if (m_next_mail_is_voice_addr)
{ {
m_voice_addr = mail; m_voice_addr = mail;
INFO_LOG_FMT(DSPHLE, "ASndUCode - Voice data is at {:08x}", mail); INFO_LOG_FMT(DSPHLE, "ASndUCode - Voice data is at {:08x}", mail);
m_next_command_is_voice_addr = false; m_next_mail_is_voice_addr = false;
// No mail is sent in response // No mail is sent in response
} }
else if ((mail & TASK_MAIL_MASK) == TASK_MAIL_TO_DSP) else if ((mail & TASK_MAIL_MASK) == TASK_MAIL_TO_DSP)
@ -150,7 +150,7 @@ void ASndUCode::HandleMail(u32 mail)
break; break;
case MAIL_SET_VOICE_DATA_BUFFER: case MAIL_SET_VOICE_DATA_BUFFER:
DEBUG_LOG_FMT(DSPHLE, "ASndUCode - MAIL_SET_VOICE_DATA_BUFFER: {:08x}", mail); DEBUG_LOG_FMT(DSPHLE, "ASndUCode - MAIL_SET_VOICE_DATA_BUFFER: {:08x}", mail);
m_next_command_is_voice_addr = true; m_next_mail_is_voice_addr = true;
// No mail is sent in response // No mail is sent in response
break; break;
case MAIL_INPUT_NEXT_SAMPLES: case MAIL_INPUT_NEXT_SAMPLES:
@ -559,7 +559,7 @@ std::pair<s16, s16> ASndUCode::ReadSampleStereo16BitsLittleEndian() const
void ASndUCode::DoState(PointerWrap& p) void ASndUCode::DoState(PointerWrap& p)
{ {
DoStateShared(p); DoStateShared(p);
p.Do(m_next_command_is_voice_addr); p.Do(m_next_mail_is_voice_addr);
p.Do(m_voice_addr); p.Do(m_voice_addr);
p.Do(m_current_voice); p.Do(m_current_voice);
p.Do(m_input_sample_buffer); p.Do(m_input_sample_buffer);

View File

@ -81,7 +81,7 @@ private:
}; };
static_assert(sizeof(VoiceData) == sizeof(u16) * 0x20); static_assert(sizeof(VoiceData) == sizeof(u16) * 0x20);
bool m_next_command_is_voice_addr = false; bool m_next_mail_is_voice_addr = false;
u32 m_voice_addr = 0; u32 m_voice_addr = 0;
VoiceData m_current_voice{}; VoiceData m_current_voice{};