mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-13 17:49:29 +01:00
Merge pull request #20566 from hrydgard/atrac-cleanup
Atrac code cleanup, logging and comment fixes
This commit is contained in:
1 parent
dde8d22ba6
commit
db5ef6fb87
17 files changed
+462
-389
No files matched your search
@@ -1096,6 +1096,14 @@ void DrawMediaDecodersView(ImConfig &cfg, ImControl &control) {
|
||||
ImGui::Checkbox("", mutePtr);
|
||||
}
|
||||
ImGui::TableNextColumn();
|
||||
|
||||
const AtracBase *ctx = __AtracGetCtx(i, &codecType);
|
||||
if (!ctx) {
|
||||
// Nothing more we can display about uninitialized contexts.
|
||||
ImGui::PopID();
|
||||
continue;
|
||||
}
|
||||
|
||||
switch (codecType) {
|
||||
case 0:
|
||||
ImGui::TextUnformatted("-"); // Uninitialized
|
||||
@@ -1111,12 +1119,6 @@ void DrawMediaDecodersView(ImConfig &cfg, ImControl &control) {
|
||||
break;
|
||||
}
|
||||
|
||||
const AtracBase *ctx = __AtracGetCtx(i, &codecType);
|
||||
if (!ctx) {
|
||||
// Nothing more we can display about uninitialized contexts.
|
||||
ImGui::PopID();
|
||||
continue;
|
||||
}
|
||||
ImGui::TableNextColumn();
|
||||
ImGui::TextUnformatted(AtracStatusToString(ctx->BufferState()));
|
||||
ImGui::TableNextColumn();
|
||||
|
||||
Reference in new issue
Block a user