mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-17 16:30:30 +02:00
Show sceAac contexts in ImDebugger
This commit is contained in:
1 parent
a0fef38f69
commit
9e3d57167f
5 files changed
+64
-13
No files matched your search
@@ -29,6 +29,7 @@
|
||||
#include "Core/HLE/SocketManager.h"
|
||||
#include "Core/HLE/NetInetConstants.h"
|
||||
#include "Core/HLE/sceKernelModule.h"
|
||||
#include "Core/HLE/sceAac.h"
|
||||
#include "Core/HLE/sceMpeg.h"
|
||||
#include "Core/HLE/sceNp.h"
|
||||
#include "Core/HLE/sceNet.h"
|
||||
@@ -1272,6 +1273,47 @@ void DrawMediaDecodersView(ImConfig &cfg, ImControl &control) {
|
||||
}
|
||||
}
|
||||
|
||||
if (ImGui::CollapsingHeaderWithCount("sceAac", (int)g_aacMap.size(), ImGuiTreeNodeFlags_DefaultOpen)) {
|
||||
if (ImGui::BeginTable("aac", 3, ImGuiTableFlags_RowBg | ImGuiTableFlags_BordersH)) {
|
||||
ImGui::TableSetupColumn("Handle", ImGuiTableColumnFlags_WidthFixed);
|
||||
ImGui::TableSetupColumn("Channels", ImGuiTableColumnFlags_WidthFixed);
|
||||
ImGui::TableSetupColumn("ReadPos", ImGuiTableColumnFlags_WidthFixed);
|
||||
|
||||
for (auto &iter : g_aacMap) {
|
||||
ImGui::TableNextRow();
|
||||
ImGui::TableNextColumn();
|
||||
ImGui::PushID(iter.first);
|
||||
ImGui::SetNextItemAllowOverlap();
|
||||
char temp[16];
|
||||
snprintf(temp, sizeof(temp), "%d", iter.first);
|
||||
if (ImGui::Selectable(temp, iter.first == cfg.selectedAacCtx, ImGuiSelectableFlags_SpanAllColumns)) {
|
||||
cfg.selectedAacCtx = iter.first;
|
||||
}
|
||||
if (!iter.second) {
|
||||
continue;
|
||||
}
|
||||
ImGui::TableNextColumn();
|
||||
ImGui::Text("%d", iter.second->Channels);
|
||||
ImGui::TableNextColumn();
|
||||
ImGui::Text("%d", (int)iter.second->ReadPos());
|
||||
ImGui::PopID();
|
||||
}
|
||||
ImGui::EndTable();
|
||||
}
|
||||
|
||||
auto iter = mp3Map.find(cfg.selectedAacCtx);
|
||||
if (iter != mp3Map.end() && ImGui::CollapsingHeader("AAC %d", iter->first)) {
|
||||
ImGui::Text("AAC Context %d", iter->first);
|
||||
if (iter->second) {
|
||||
AuCtx *ctx = iter->second;
|
||||
ImGui::Text("%d Hz, %d channels", ctx->SamplingRate, ctx->Channels);
|
||||
ImGui::Text("AUBuf: %08x AUSize: %08x", ctx->AuBuf, ctx->AuBufSize);
|
||||
ImGui::Text("PCMBuf: %08x PCMSize: %08x", ctx->PCMBuf, ctx->PCMBufSize);
|
||||
ImGui::Text("Pos: %d (%d -> %d)", ctx->ReadPos(), (int)ctx->startPos, (int)ctx->endPos);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (ImGui::CollapsingHeaderWithCount("sceAudiocodec", (int)g_audioDecoderContexts.size(), ImGuiTreeNodeFlags_DefaultOpen)) {
|
||||
if (ImGui::BeginTable("codecs", 2, ImGuiTableFlags_RowBg | ImGuiTableFlags_BordersH)) {
|
||||
ImGui::TableSetupColumn("CtxAddr", ImGuiTableColumnFlags_WidthFixed);
|
||||
|
||||
Reference in new issue
Block a user