Rename 'chans' to g_audioChans

This commit is contained in:
Henrik Rydgård committed 2025-04-15 11:18:53 +02:00
1 parent 37e5aaa34a
commit af30c04711
5 files changed
+76 -76

No files matched your search

+6 -6
View File
@@ -1257,7 +1257,7 @@ void DrawAudioChannels(ImConfig &cfg, ImControl &control) {
// vaudio / output2 uses channel 8.
for (int i = 0; i < PSP_AUDIO_CHANNEL_MAX + 1; i++) {
if (!chans[i].reserved) {
if (!g_audioChans[i].reserved) {
continue;
}
ImGui::TableNextRow();
@@ -1270,13 +1270,13 @@ void DrawAudioChannels(ImConfig &cfg, ImControl &control) {
ImGui::TableNextColumn();
char id[2]{};
id[0] = i + 1;
ImClickableValue(id, chans[i].sampleAddress, control, ImCmd::SHOW_IN_MEMORY_VIEWER);
ImClickableValue(id, g_audioChans[i].sampleAddress, control, ImCmd::SHOW_IN_MEMORY_VIEWER);
ImGui::TableNextColumn();
ImGui::Text("%08x", chans[i].sampleCount);
ImGui::Text("%08x", g_audioChans[i].sampleCount);
ImGui::TableNextColumn();
ImGui::Text("%d | %d", chans[i].leftVolume, chans[i].rightVolume);
ImGui::Text("%d | %d", g_audioChans[i].leftVolume, g_audioChans[i].rightVolume);
ImGui::TableNextColumn();
switch (chans[i].format) {
switch (g_audioChans[i].format) {
case PSP_AUDIO_FORMAT_STEREO:
ImGui::TextUnformatted("Stereo");
break;
@@ -1288,7 +1288,7 @@ void DrawAudioChannels(ImConfig &cfg, ImControl &control) {
break;
}
ImGui::TableNextColumn();
for (auto t : chans[i].waitingThreads) {
for (auto t : g_audioChans[i].waitingThreads) {
KernelObject *thread = kernelObjects.GetFast<KernelObject>(t.threadID);
if (thread) {
ImGui::Text("%s: %d", thread->GetName(), t.numSamples);