Show new audio channels as green on the debug tool

This commit is contained in:
PJB3005
2026-03-27 14:54:17 +01:00
parent 50303bba1b
commit 0ef39ae045
+9 -1
View File
@@ -10,6 +10,7 @@
#include "dusk/audio/DuskAudioSystem.h"
static std::array<u8, DSP_CHANNELS> channelSortIndices = {};
static std::array<u32, DSP_CHANNELS> lastResetCounts = {};
static bool sortUpdateCount = true;
@@ -28,7 +29,14 @@ static void DisplayDspChannel(int i) {
if (ImGui::BeginChild(buf, ImVec2(), ImGuiChildFlags_Border | ImGuiChildFlags_AutoResizeY)) {
ImGui::Text("[%02X]", i);
ImGui::SameLine();
ImGui::Text("Update count: %d", jasChannel.mUpdateCounter);
auto resetCount = GetResetCount(i);
ImColor color = IM_COL32_WHITE;
if (lastResetCounts[i] != resetCount) {
lastResetCounts[i] = resetCount;
color = IM_COL32(0, 0xFF, 0, 0xFF);
}
ImGui::TextColored(color, "Update count: %d, reset count: %ud", jasChannel.mUpdateCounter, resetCount);
ImGui::TextUnformatted(channel.mLoopFlag ? "Loop: true" : "Loop: false");
ImGui::SameLine();
ImGui::Text("Priority: %hd", jasChannel.mPriority);