GA20: Fix build and sound output, Add debug
This commit is contained in:
parent
ee983e47f0
commit
be9a1a17f0
3 changed files with 52 additions and 29 deletions
|
|
@ -49,6 +49,7 @@
|
|||
#include "../engine/platform/lynx.h"
|
||||
#include "../engine/platform/pcmdac.h"
|
||||
#include "../engine/platform/k007232.h"
|
||||
#include "../engine/platform/ga20.h"
|
||||
#include "../engine/platform/dummy.h"
|
||||
|
||||
#define COMMON_CHIP_DEBUG \
|
||||
|
|
@ -502,6 +503,14 @@ void putDispatchChip(void* data, int type) {
|
|||
ImGui::TextColored(ch->stereo?colorOn:colorOff,">> Stereo");
|
||||
break;
|
||||
}
|
||||
case DIV_SYSTEM_GA20: {
|
||||
DivPlatformGA20* ch=(DivPlatformGA20*)data;
|
||||
ImGui::Text("> GA20");
|
||||
COMMON_CHIP_DEBUG;
|
||||
ImGui::Text("- delay: %.2x",ch->delay);
|
||||
COMMON_CHIP_DEBUG_BOOL;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
ImGui::Text("Unimplemented chip! Help!");
|
||||
break;
|
||||
|
|
@ -914,6 +923,20 @@ void putDispatchChan(void* data, int chanNum, int type) {
|
|||
ImGui::TextColored(ch->setPos?colorOn:colorOff,">> SetPos");
|
||||
break;
|
||||
}
|
||||
case DIV_SYSTEM_GA20: {
|
||||
DivPlatformGA20::Channel* ch=(DivPlatformGA20::Channel*)data;
|
||||
ImGui::Text("> GA20");
|
||||
COMMON_CHAN_DEBUG;
|
||||
ImGui::Text("- prevFreq: %d",ch->prevFreq);
|
||||
ImGui::Text("* Sample: %d",ch->sample);
|
||||
ImGui::Text(" - pos: %d",ch->audPos);
|
||||
ImGui::Text("- resVol: %.2x",ch->resVol);
|
||||
ImGui::Text("- macroVolMul: %.2x",ch->macroVolMul);
|
||||
COMMON_CHAN_DEBUG_BOOL;
|
||||
ImGui::TextColored(ch->volumeChanged?colorOn:colorOff,">> VolumeChanged");
|
||||
ImGui::TextColored(ch->setPos?colorOn:colorOff,">> SetPos");
|
||||
break;
|
||||
}
|
||||
default:
|
||||
ImGui::Text("Unimplemented chip! Help!");
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue