mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-18 06:25:37 +00:00
SPU: Correct sample rate display in debugger
This commit is contained in:
parent
40eb157d77
commit
9f5bd6e5f9
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue