From 5a34a15bf2184215739aee039c1df37d328ba2b7 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Thu, 30 Jul 2020 00:51:12 +1000 Subject: [PATCH] CDROM: Include FIFO size in debug window --- src/core/cdrom.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/cdrom.cpp b/src/core/cdrom.cpp index eda16783a..ecccf7d3b 100644 --- a/src/core/cdrom.cpp +++ b/src/core/cdrom.cpp @@ -2342,7 +2342,7 @@ void CDROM::DrawDebugWindow() static const ImVec4 inactive_color{0.4f, 0.4f, 0.4f, 1.0f}; const float framebuffer_scale = ImGui::GetIO().DisplayFramebufferScale.x; - ImGui::SetNextWindowSize(ImVec2(800.0f * framebuffer_scale, 500.0f * framebuffer_scale), ImGuiCond_FirstUseEver); + ImGui::SetNextWindowSize(ImVec2(800.0f * framebuffer_scale, 550.0f * framebuffer_scale), ImGuiCond_FirstUseEver); if (!ImGui::Begin("CDROM State", &m_system->GetSettings().debugging.show_cdrom_state)) { ImGui::End(); @@ -2513,6 +2513,8 @@ void CDROM::DrawDebugWindow() ImGui::Text("Right Output: Left Channel=%02X (%u%%), Right Channel=%02X (%u%%)", m_cd_audio_volume_matrix[0][1], ZeroExtend32(m_cd_audio_volume_matrix[0][1]) * 100 / 0x80, m_cd_audio_volume_matrix[1][1], ZeroExtend32(m_cd_audio_volume_matrix[1][1]) * 100 / 0x80); + + ImGui::Text("Audio FIFO Size: %u frames", m_audio_fifo.GetSize()); } ImGui::End();