From 9f5bd6e5f9751f6116894834a14a5a13abb2069f Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Tue, 29 Oct 2019 22:54:16 +1000 Subject: [PATCH] SPU: Correct sample rate display in debugger --- src/core/spu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/spu.cpp b/src/core/spu.cpp index 1cc6bfe61..160238d63 100644 --- a/src/core/spu.cpp +++ b/src/core/spu.cpp @@ -1035,7 +1035,7 @@ void SPU::DrawDebugStateWindow() ImGui::NextColumn(); ImGui::TextColored(color, "%04X", ZeroExtend32(v.regs.adpcm_repeat_address)); ImGui::NextColumn(); - ImGui::TextColored(color, "%.2f", (float(v.regs.adpcm_sample_rate) / 16383.0f) * 44100.0f); + ImGui::TextColored(color, "%.2f", (float(v.regs.adpcm_sample_rate) / 4096.0f) * 44100.0f); ImGui::NextColumn(); ImGui::TextColored(color, "%04X", ZeroExtend32(v.regs.volume_left.bits)); ImGui::NextColumn();