SPU: Correct sample rate display in debugger

This commit is contained in:
Connor McLaughlin 2019-10-29 22:54:16 +10:00
parent 40eb157d77
commit 9f5bd6e5f9

View file

@ -1035,7 +1035,7 @@ void SPU::DrawDebugStateWindow()
ImGui::NextColumn(); ImGui::NextColumn();
ImGui::TextColored(color, "%04X", ZeroExtend32(v.regs.adpcm_repeat_address)); ImGui::TextColored(color, "%04X", ZeroExtend32(v.regs.adpcm_repeat_address));
ImGui::NextColumn(); 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::NextColumn();
ImGui::TextColored(color, "%04X", ZeroExtend32(v.regs.volume_left.bits)); ImGui::TextColored(color, "%04X", ZeroExtend32(v.regs.volume_left.bits));
ImGui::NextColumn(); ImGui::NextColumn();