mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-23 06:15:38 +00:00
SPU: Log warning when data is lost due to reg clear
This commit is contained in:
parent
ea1066f76e
commit
614ea632a5
|
@ -444,9 +444,12 @@ void SPU::WriteRegister(u32 offset, u16 value)
|
|||
new_value.ram_transfer_mode == RAMTransferMode::Stopped)
|
||||
{
|
||||
// clear the fifo here?
|
||||
Log_DebugPrintf("Clearing SPU transfer FIFO");
|
||||
if (!m_transfer_fifo.IsEmpty())
|
||||
{
|
||||
Log_WarningPrintf("Clearing SPU transfer FIFO with %u bytes left", m_transfer_fifo.GetSize());
|
||||
m_transfer_fifo.Clear();
|
||||
}
|
||||
}
|
||||
|
||||
if (!new_value.enable && m_SPUCNT.enable)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue