From 614ea632a53bc023016415cd026e065b30cd7845 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Mon, 29 Jun 2020 14:45:03 +1000 Subject: [PATCH] SPU: Log warning when data is lost due to reg clear --- src/core/spu.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/core/spu.cpp b/src/core/spu.cpp index e7e802bda..369b364f2 100644 --- a/src/core/spu.cpp +++ b/src/core/spu.cpp @@ -444,8 +444,11 @@ void SPU::WriteRegister(u32 offset, u16 value) new_value.ram_transfer_mode == RAMTransferMode::Stopped) { // clear the fifo here? - Log_DebugPrintf("Clearing SPU transfer FIFO"); - m_transfer_fifo.Clear(); + 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)