mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-10 22:49:00 +01:00
AX-HLE: Call HLE on mailbox write
It was done on Update() which was called exactly every 5ms. But the game is allowed to use the DSP more often, eg to generate 48kHz audio.
This commit is contained in:
parent
bdbe723d6e
commit
7277eb0e6c
@ -14,7 +14,6 @@
|
||||
|
||||
AXUCode::AXUCode(DSPHLE* dsphle, u32 crc)
|
||||
: UCodeInterface(dsphle, crc)
|
||||
, m_work_available(false)
|
||||
, m_cmdlist_size(0)
|
||||
{
|
||||
WARN_LOG(DSPHLE, "Instantiating AXUCode: crc=%08x", crc);
|
||||
@ -609,7 +608,9 @@ void AXUCode::HandleMail(u32 mail)
|
||||
if (next_is_cmdlist)
|
||||
{
|
||||
CopyCmdList(mail, cmdlist_size);
|
||||
m_work_available = true;
|
||||
HandleCommandList();
|
||||
m_cmdlist_size = 0;
|
||||
SignalWorkEnd();
|
||||
}
|
||||
else if (m_upload_setup_in_progress)
|
||||
{
|
||||
@ -669,12 +670,6 @@ void AXUCode::Update()
|
||||
m_mail_handler.PushMail(DSP_RESUME);
|
||||
DSP::GenerateDSPInterruptFromDSPEmu(DSP::INT_DSP);
|
||||
}
|
||||
else if (m_work_available)
|
||||
{
|
||||
HandleCommandList();
|
||||
m_cmdlist_size = 0;
|
||||
SignalWorkEnd();
|
||||
}
|
||||
}
|
||||
|
||||
u32 AXUCode::GetUpdateMs()
|
||||
|
@ -84,9 +84,6 @@ protected:
|
||||
int m_samples_auxB_right[32 * 5];
|
||||
int m_samples_auxB_surround[32 * 5];
|
||||
|
||||
// This flag is set if there is anything to process.
|
||||
bool m_work_available;
|
||||
|
||||
u16 m_cmdlist[512];
|
||||
u32 m_cmdlist_size;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user